|
|
|
|
|
by fredrikholm
1097 days ago
|
|
Elixir does: Enum.map(list, func)
This is backwards to how partial application works: def mapper(func), do: Enum.map(func)
incrementer = mapper(fn x -> x + 1 end)
incrementer(list)
It's not the end of the world to not have it this way, but it removes a lot of patterns that are common in other functional languages. |
|