Skip to content

Instantly share code, notes, and snippets.

@pkutaj
Created August 19, 2026 07:35
Show Gist options
  • Select an option

  • Save pkutaj/23e948812ed9438a9546ecf930b349ac to your computer and use it in GitHub Desktop.

Select an option

Save pkutaj/23e948812ed9438a9546ecf930b349ac to your computer and use it in GitHub Desktop.
Explaining iteration vs recursion through peano addition snippet
(define (add x y)
(if (= x 0) y (add (- x 1) (+ y 1))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment