Skip to content

Instantly share code, notes, and snippets.

@vhxs
Created December 2, 2022 02:12
Show Gist options
  • Save vhxs/4c516319be2e21cfbc70af33089ae161 to your computer and use it in GitHub Desktop.
Save vhxs/4c516319be2e21cfbc70af33089ae161 to your computer and use it in GitHub Desktop.
Sum a list of integers represented as strings
sum_list [] = 0
sum_list (elt:elts) = (read elt :: Integer) + sum_list elts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment