You're viewing version 1.2.0 of alter-meta!. The latest stable version of Clojure Core is 1.3.0.
1.2.0 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:1823 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"}
 [^clojure.lang.IReference iref f & args] (.alterMeta iref f args))
Vars in clojure.core/alter-meta!: defn

Comments top

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