Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: pipeWith to use curried format #10

Open
finnmerlett opened this issue Jun 9, 2021 · 0 comments
Open

Suggestion: pipeWith to use curried format #10

finnmerlett opened this issue Jun 9, 2021 · 0 comments

Comments

@finnmerlett
Copy link

finnmerlett commented Jun 9, 2021

I like the syntactic sugar of pipeWith, as it follows more logically in my head (and also nicely emulates the way RxJs does things). That said, I feel like the distinction between the first parameter and the rest could be made clearer by changing the format to

pipeWith(dataIn)(
  fn1,
  fn2,
  fn3
) // etc

Alternatively, you could add it with a different name like pipeFrom to avoid it being a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant