Guest User

Untitled

a guest
Apr 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. (defn my-recursive-sum
  2. ([numbers] (my-recursive-sum 0 numbers))
  3. ([total numbers]
  4. (if (empty? numbers)
  5. total
  6. (my-recursive-sum (+ (first numbers) total) (rest numbers)))))
Add Comment
Please, Sign In to add comment