Does xstream have a similar concept to rx's pipeable operators?
See original GitHub issuehttps://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md
I’m a huge fan of FP with pipe and compose (ramda, lodash/fp), so I like that rx has a pipe fn. I also like xstream’s simplicity. Curious if xstream enables piping of some sort, sans the dot. Fns like .map
and .filter
make me a bit apprehensive. Patching prototypes for custom fns can get tricky, especially if the chaining hides internal mutation.
Compose seems like it might be similar to source$.pipe(fns...)
in the rx link. Is it? And, if so, how easy would it be to reverse it for pipe’s redability? e.g., const pipe = (...fns)=>compose(...fns.reverse());
.
Related: This mention of pipe-style api seems like it might reference the same concept, but is the only issue with the word “pipe” in it.
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
I did it here: https://github.com/anilanar/xstream-pipe
That is indeed correct 😃