Skip to content

Instantly share code, notes, and snippets.

@hiredman
Last active June 1, 2018 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiredman/64b5dbb310dce18d67470ea92f93f9e0 to your computer and use it in GitHub Desktop.
Save hiredman/64b5dbb310dce18d67470ea92f93f9e0 to your computer and use it in GitHub Desktop.
(define (add1* l)
(let ((x (empty? l)))
(if x
'()
(let ((m (first l))
(y (add1 m))
(n (rest l))
(z (add1* n)))
(cons y z)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment