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

Support for function composition #5

Open
sharkdp opened this issue Nov 26, 2017 · 1 comment
Open

Support for function composition #5

sharkdp opened this issue Nov 26, 2017 · 1 comment
Labels

Comments

@sharkdp
Copy link
Owner

sharkdp commented Nov 26, 2017

It would be great if we could compose functions before we hand them over to map or filter.

Suppose that : would be the reverse composition operator (the flipped version of .):

find | filter extension : equals "jpg" | map prepend "thumbnail_" : replace_ext "png"
@sharkdp
Copy link
Owner Author

sharkdp commented Apr 8, 2018

Using . for normal composition (like in Haskell) should actually work. It is not interpreted by (standard) shells.

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

No branches or pull requests

1 participant