Skip to content

Instantly share code, notes, and snippets.

@Odinodin
Created July 26, 2013 07:40
Show Gist options
  • Save Odinodin/6086996 to your computer and use it in GitHub Desktop.
Save Odinodin/6086996 to your computer and use it in GitHub Desktop.
Rolling your own + using add1, sub1 and recursion
(define +
(lambda (a b)
(cond
[(zero? b) a]
[else (add1 (+ a (sub1 b)))])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment