Functional Shell: A Minimal Toolbox

I already wrote a post about adopting a functional programming style in bash scripts. Here I want to explore how to build a minimal, reusable functional toolbox for my bash scripts, avoiding redefinition of base functional bricks whenever I need them.

So, in short: I wish I could write a script (say use-functional-bricks.sh) like the following: