Skip to content

Instantly share code, notes, and snippets.

@rexcfnghk
Created April 14, 2019 13:17
Show Gist options
  • Save rexcfnghk/e5bbcee3eedae1f19ef4422d53901a68 to your computer and use it in GitHub Desktop.
Save rexcfnghk/e5bbcee3eedae1f19ef4422d53901a68 to your computer and use it in GitHub Desktop.
mySum :: [Int] -> Int
mySum [] = 0
mySum (x:xs) = x + mySum xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment