Neroware / GodotRx

Reactive Extensions for Godot Engine version 4
MIT License
94 stars 6 forks source link

Add operator methods to Subject #12

Closed Neroware closed 7 months ago

Neroware commented 9 months ago

This idea has just dawned on me. Since Subjects in GodotRx cannot inherit from Observable due to some language limitations, they currently do not provide the set of operator methods declared in the Observable class. This is unfortunate and I think should be added to make Subjects even more similar to Observables.

It would be pretty straight forward:

func map(pred) -> Obervable:
   return self.as_observable().map(pred)
Neroware commented 7 months ago

Done in recent commit.