Skip to content

Instantly share code, notes, and snippets.

@sritchie
Created June 26, 2011 00:13
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 sritchie/1047073 to your computer and use it in GitHub Desktop.
Save sritchie/1047073 to your computer and use it in GitHub Desktop.
(def
^{:arglists '([obj])
:doc "Returns the metadata of obj, returns nil if there is no metadata."
:added "1.0"}
my-meta (fn my-meta [x]
(if (instance? clojure.lang.IMeta x)
(do (def new-sym x) (. x (meta))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment