Skip to content

Instantly share code, notes, and snippets.

@tonini
Created June 14, 2013 12:48
Show Gist options
  • Select an option

  • Save tonini/5781545 to your computer and use it in GitHub Desktop.

Select an option

Save tonini/5781545 to your computer and use it in GitHub Desktop.
sum = fn
[1,2,3] -> 1 + 2 + 3
[] -> "Empty"
end
sum = function do
[1,2,3] -> 1 + 2 + 3
[] -> "Empty"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment