1.3.0 permalink Arrow_down_16x16

alter-meta!

clojure.core

  • (alter-meta! iref f & args)
Atomically sets the metadata for a namespace/var/ref/agent/atom to be:

(apply f its-current-meta args)

f must be free of side-effects

0 Examples top

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:2143 top

(defn alter-meta!
  "Atomically sets the metadata for a namespace/var/ref/agent/atom to be:

  (apply f its-current-meta args)

  f must be free of side-effects"
  {:added "1.0"
   :static true}
 [^clojure.lang.IReference iref f & args] (.alterMeta iref f args))
Vars in clojure.core/alter-meta!:
Used in 0 other vars

Comments top

No comments for alter-meta!. Log in to add a comment.