-
Notifications
You must be signed in to change notification settings - Fork 70
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 as lazy function #218
Comments
Good idea. I already checked your library rocket.pipes 👍 Could you please create a PR?? |
Thanks, yep 👌 |
@darky There is something I would like to discuss. Currently,
const res1 = pipeLazy(
(a: string) => head(a),
);
const res2 = pipeLazy(
head,
); So the initial design was intended for users to type something like the following to use the const res3 = (a:string) => pipe(a, head) Is there any way to support type 2?🧐 |
Sorry, but I don't think that case 2 is possible. P. S. Maybe modern TypeScript allows to implement case 2 via some secret trick, but I don't know it. Will glad to accept this insight. Suggestions welcome! |
Suggestion
⭐ Suggestion
pipe
in FxTS works in eager fashion.Would be great to have something like
pipeLazy
, which works in lazy fashion.💻 Use Cases
...
The text was updated successfully, but these errors were encountered: