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

'pipe' function #475

Closed
TClark1011 opened this issue Jul 19, 2022 · 5 comments · May be fixed by TClark1011/just#1
Closed

'pipe' function #475

TClark1011 opened this issue Jul 19, 2022 · 5 comments · May be fixed by TClark1011/just#1

Comments

@TClark1011
Copy link
Contributor

  • Flow: A left-to-right version of compose
  • Pipe: A version of flow, except instead of returning a new function, the first parameter is passed through the composed function and the end result is returned

Reference: https://mobily.github.io/ts-belt/api/pipe-flow

@angus-c
Copy link
Owner

angus-c commented Jul 31, 2022

I like both of these. PRs welcome of I don't get to it myself.

@TClark1011
Copy link
Contributor Author

I'm happy to do it, is there any particular procedure for creating new modules?

@TClark1011
Copy link
Contributor Author

I actually just realised that just-compose already uses left-to-right function composition, so flow is irrelevant. Sorry about that, I'm just so used to compose using right-to-left composition that I didn't even check. I'm still happy to create pipe however

@angus-c
Copy link
Owner

angus-c commented Aug 2, 2022

Ha no my bad. I wrote it so long ago I forgot :)
Here are the guidelines for creating new modules

@TClark1011 TClark1011 changed the title 'pipe' and 'flow' functions 'pipe' function Aug 2, 2022
@angus-c
Copy link
Owner

angus-c commented Feb 4, 2023

Closed by #492

@angus-c angus-c closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants