Created
August 2, 2016 14:46
-
-
Save indatawetrust/394d2a7741e01890a96b0117c60de1ca to your computer and use it in GitHub Desktop.
elixir for
This file contains hidden or 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
log = fn -> | |
1..1_000 |> Enum.map(fn(num) -> IO.puts num end) | |
end | |
log.() | |
# log | |
# 1 | |
# 2 | |
# 3 | |
# ... | |
# 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment