Feature summary (what you would like to be able to do and where):
In Wikifunctions, implement function closures for function composition. Specifically, I would like to be able to define an anonymous helper function inside of a function composition, which can reference variables from the scope it was declared in (e.g. arguments of the parent function). However, I believe this need would also be alleviated by allowing for closures through OCaml-style partial function application, where add x gives you a function closure, which can then be called to give you a result (add x) y, which is equivalent to add x y.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
Many possible use cases revolving around map & fold/reduce, rather than relying directly on recursion. I was thinking of another implementation for Z13322/is sorted using fold left, but I am unsure of how that implementation could be done without (1) function closures, made smoother with anonymous functions, or (2) the ability to call external ZFunctions from within a programming language implementation (which is another thing I would like to see, but that's for a different ticket).
Benefits (why should this be implemented?):
I believe this would enable a huge number of new functions/implementations and start bringing Wikifunctions up to speed with an actual functional programming language, like OCaml.