Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created June 30, 2011 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amalloy/1055630 to your computer and use it in GitHub Desktop.
Save amalloy/1055630 to your computer and use it in GitHub Desktop.
user> (let [f (fn inner [f]
;; makes it available on this inner-bound runner:
(identical? f inner))
m (with-meta f {:dummy :value})]
[(f f) (f m) (m f) (m m)])
[true false false true]
user> (let [f (fn inner []
inner)
m (with-meta f {:a 1})]
[(identical? f (f)) (identical? m (m))])
[true true]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment