Created
April 12, 2014 16:44
-
-
Save 1ambda/10545145 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
;; in dynamic scoping | |
(defun my-compose (f g) | |
(lambda (x) | |
(funcall f (funcall g x)))) | |
(funcall | |
(my-compose (lambda (n) (+ n 3)) (lambda (n) (+ n 20))) | |
100) ; results in error, Lisp error: (void-variable f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment