Open hjwylde opened 10 years ago
Composition and currying of functions would be awesome too.
Perhaps the pipe for composition, &max | &abs
, to feed the return value into the other function.
When calling a function and using the address of operator, it could be considered currying, I.e., &max(0)
.
I would like to support high-order functions, i.e.,
fold(&max, xs)
. The&
operator can be used to get the address of the function. It should only work on functions and not methods.