Last active
January 4, 2016 21:57
-
-
Save springcoil/8a3643d0a2e389daf020 to your computer and use it in GitHub Desktop.
Some fun with elixir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex> Enum.map([1, 2, 3], fn x -> x * 3 end) | |
[3, 6, 9] | |
iex> Enum.map(%{1 => 2, 3 => 4}, fn {k, v} -> k * v end) | |
[2, 12] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment