Created
May 13, 2014 21:19
-
-
Save findjashua/f9a57c3839bff6b5f298 to your computer and use it in GitHub Desktop.
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
module foo | |
def min(list) when length(list) > 0 do | |
Enum.min(list) | |
end | |
def min([]) do | |
[] | |
end | |
def min(list) do | |
{:error, list} | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment