Skip to content

Instantly share code, notes, and snippets.

@jtrim
Last active August 29, 2015 14:10
Show Gist options
  • Save jtrim/47c8d59c2d26c6f9c566 to your computer and use it in GitHub Desktop.
Save jtrim/47c8d59c2d26c6f9c566 to your computer and use it in GitHub Desktop.
def add(input) do
delimiter_from(input)
|> split(numbers_from(input))
|> map(&to_integer/1)
|> sum
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment