• (meta obj)
Returns the metadata of obj, returns nil if there is no metadata.

1 Example top

  • user=> (meta #'first)
    {:ns #<Namespace clojure.core>, :name first, :file "clojure/core.clj", :line 39, :arglists ([coll]), :doc "Returns the first item in the collection. Calls seq on its\n    argument. If coll is nil, returns nil."}
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:195 top

(def
 ^{:arglists '([obj])
   :doc "Returns the metadata of obj, returns nil if there is no metadata."
   :added "1.0"
   :static true}
 meta (fn ^:static meta [x]
        (if (instance? clojure.lang.IMeta x)
          (. ^clojure.lang.IMeta x (meta)))))
Vars in clojure.core/meta:
Used in 0 other vars

Comments top

No comments for meta. Log in to add a comment.