Skip to content

Instantly share code, notes, and snippets.

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

  • Save pkutaj/516fdc29fe742b1afcd6b43978a58b93 to your computer and use it in GitHub Desktop.

Select an option

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