Skip to content

Instantly share code, notes, and snippets.

/fn.clj Secret

Created August 3, 2013 22:00
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 anonymous/c0874137348fac3c3e70 to your computer and use it in GitHub Desktop.
Save anonymous/c0874137348fac3c3e70 to your computer and use it in GitHub Desktop.
(defrecord objFn [a]
clojure.lang.IFn
(invoke [this args]
(list 'invoke a args))
(applyTo [this args]
(list 'apply a args)))
(def obj (objFn. "Hi"))
(obj 1 2 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment