shell-functools
shell-functools copied to clipboard
Support for function composition
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 flip
ped version of .
):
find | filter extension : equals "jpg" | map prepend "thumbnail_" : replace_ext "png"
Using .
for normal composition (like in Haskell) should actually work. It is not interpreted by (standard) shells.