3 ms·
Clojure has built-in macros and functions that allow you to do similar composition - without having to name arguments. One of them is to use the threading macr
by dimitar 4y ago
Clojure has built-in macros and functions that allow you to do similar composition - without having to name arguments.
One of them is to use the threading macros (-> value fun1 fun2), and another one is to use the comp function. Both will require you to name arguments for anonymous functions, but this is likely not an issue as you have even better ways to get a lambda like using partial, comp itself or other higher level functions.