-
-
Save eu90h/485da0c91b0db4e4f907 to your computer and use it in GitHub Desktop.
returning named functions
This file contains 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 (make-adder increment) | |
(define (adder x) | |
(+ x increment)) | |
adder) | |
(define adder (make-adder 2)) | |
(adder 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment