Skip to content

Instantly share code, notes, and snippets.

@BadBastion
Last active July 19, 2017 21:10
Show Gist options
  • Save BadBastion/c1a615ae9c15365c536ac51bc8e78208 to your computer and use it in GitHub Desktop.
Save BadBastion/c1a615ae9c15365c536ac51bc8e78208 to your computer and use it in GitHub Desktop.
Both are basically the same
[1,2,3] |> map(fn number -> my_function(number) end)
[1,2,3] |> reduce([], fn number, acc -> acc ++ [ my_function(number) ] end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment