This is a collection of Bash functions to make bash more functional.
description
Usage: filter funcName "${arrName[@]}"
description
Usage: map funcName "${arrName[@]}"
description
Usage: refmap callback arr[@] => []
description
Usage: chain funcs[@] arr[@]
Referential foldr
.
Usage: foldr callback [$init] arr[@]
description
Usage: unfold callback [$init] $limit [$step] => []
description
Usage: zip arr1[@] arr2[@] [tuplesep]
description
Usage: zipWith funcname arr1[@] arr2[@] [tuplesep]
description
Usage: ...
Special forEachParallel.
Uses the coproc
directive in bash to run each function call asynchronously.
This code is licensed under the MIT license. Contributions are welcome.