3 ms·
Is that example code elixir?
by jtms 8y ago
Is that example code elixir?
- rgoulter 8y agoIt's not anything in particular. Rosetta Code has "apply a callback to an array" example with Elixir. https://rosettacode.org/wiki/Apply_a_callback_to_an_array#Elixir https://rosettacode.org/wiki/Apply_a_callback_to_an_array#El... Enum.map([1, 2, 3], fn(n) -> n * 2 end) Enum.map [1, 2, 3], &(&1 * 2)