Created
August 19, 2026 07:35
-
-
Save pkutaj/23e948812ed9438a9546ecf930b349ac to your computer and use it in GitHub Desktop.
Explaining iteration vs recursion through peano addition snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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