Created
December 2, 2022 02:12
-
-
Save vhxs/4c516319be2e21cfbc70af33089ae161 to your computer and use it in GitHub Desktop.
Sum a list of integers represented as strings
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
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