Skip to content

Instantly share code, notes, and snippets.

@zeptometer
Created May 12, 2015 05:19
Show Gist options
  • Select an option

  • Save zeptometer/c18cf2212429fd894572 to your computer and use it in GitHub Desktop.

Select an option

Save zeptometer/c18cf2212429fd894572 to your computer and use it in GitHub Desktop.
(define sum (lambda (x)
(if (= x 0)
0
(+ x (sum (- x 1))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment