Bringing back Method Chaining #746
MichaelSchneeberger
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hey, it's just an alternative way of writing the queries. E.g: (
rx.of(1, 2, 3, 4, 5)
.map(lambda x: x * 2)
.filter(lambda x: x > 5)
.take(3)
.subscribe(print)
)Personallly I have missed this way of writing Rx and wanted to bring it back. For the >>> from reactivex import of
>>> xs = of(1,2,3)
>>> xs.flat_map
xs.flat_map( xs.flat_map_indexed( xs.flat_map_latest( E.g for F# you can use fluent additions like https://fsprojects.github.io/FSharp.Core.Fluent/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
#743 brough back Method Chaining for Observables - a feature presented in the early versions of RxPY.
Out of curiousity, @dbrattli: What advantages does method chaining provide alongside the function style pipe-style approach?
Beta Was this translation helpful? Give feedback.
All reactions