Created
April 15, 2018 21:52
-
-
Save woliveiras/45d1224405b5870e3c4af921b17a46e1 to your computer and use it in GitHub Desktop.
This file contains 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
(defn my-recursive-sum [total numbers] | |
(if (empty? numbers) | |
total | |
(my-recursive-sum (+ (first numbers) total) (rest numbers)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment