Created
November 30, 2014 20:30
-
-
Save mathias/9f858a4fc5aec0e24026 to your computer and use it in GitHub Desktop.
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
lispy> (def {add-mul} (\ {x y} {+ x (* x y)})) | |
() | |
lispy> add-mul 10 20 | |
210 | |
lispy> add-mul 10 | |
(\ {y} {+ x (* x y)}) | |
lispy> (def {add-mul-ten} (add-mul 10)) | |
() | |
lispy> add-mul-ten 50 | |
510 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment