3 ms·
Elixir has an anonymous function short hand that makes the "partial application" use case pretty easy for me. &Compare.clamp(&1, some_min, some_max) The abo
by grantjpowell 6y ago
Elixir has an anonymous function short hand that makes the "partial application" use case pretty easy for me.
&Compare.clamp(&1, some_min, some_max)
The above creates an arity one function which puts the arg into the first position in the original function.
I've never felt pain around partial application because I use the anonymous function short hand a good deal