Skip to content

Instantly share code, notes, and snippets.

@woliveiras
Created April 15, 2018 21:52
Show Gist options
  • Save woliveiras/45d1224405b5870e3c4af921b17a46e1 to your computer and use it in GitHub Desktop.
Save woliveiras/45d1224405b5870e3c4af921b17a46e1 to your computer and use it in GitHub Desktop.
(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