Skip to content

Instantly share code, notes, and snippets.

@iyahoo
Created December 13, 2016 10:40
Show Gist options
  • Save iyahoo/2cefcb1294d5fa266be804454fd52578 to your computer and use it in GitHub Desktop.
Save iyahoo/2cefcb1294d5fa266be804454fd52578 to your computer and use it in GitHub Desktop.
dynamic scope
(defparameter *global-z* 10)
(let ((f (lambda (x) (+ x *global-z*))))
(let ((*global-z* 3))
(funcall f 3)))
;=> 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment