Created
February 6, 2015 15:33
-
-
Save guilleiguaran/05db8877e0c71ea6e7e5 to your computer and use it in GitHub Desktop.
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
defmodule Enum do | |
def each([], _fun), do: nil | |
def each([head | tail], fun) do | |
fun.(head) | |
each(tail) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment