Created
September 8, 2015 13:40
-
-
Save wende/25cab8823c545b08f6d2 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
| def sum_list([], acc), do: acc | |
| def sum_list([head | tail], acc // 0) do | |
| sum_list(tail, head + acc) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment