Returns an object of the same type and value as obj, with
map m as its metadata.
;; the same example above in a simplified way
user=> (def wm (with-meta [1 2 3] {:my "meta"}))
#'user/wm
user=> wm
[1 2 3]
user=> (meta wm)
{:my "meta"}
(def
^{:arglists '([^clojure.lang.IObj obj m])
:doc "Returns an object of the same type and value as obj, with
map m as its metadata."
:added "1.0"}
with-meta (fn with-meta [^clojure.lang.IObj x m]
(. x (withMeta m))))
Comments top
No comments for with-meta. Log in to add a comment.