-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add option to generate a function #1
Comments
Could u give an example of the input & output? |
Sure! Basically for point free function composition Input const normalize = pipe(capitalize, camelCase, trim) Output const normalize = (... args) =>
trim(camelCase(capitalize(... args))) |
That would make a good When I get some free time in following days I might create the other one. |
Oh, Thank you for thinking on the future ourselves! 😄 |
Hello again @Andarist , Whatever you prefer. Regards |
I don't mind you forking this project and adjusting it to create |
Hello, thank you for this macro. It is very useful because I really think that there is no need for a new syntax for something as simple as this.
However, there is a feature that I wish this macro has: being able to define new functions using the pipe macro. I use functional programming a lot, and one way to create point free functions is by piping several of them. If this macro provides that it will be perfect for almost any use case.
Regards
The text was updated successfully, but these errors were encountered: