Skip to content

Commit

Permalink
added vary-meta
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Jan 22, 2009
1 parent 3c9ebfc commit 92a2a04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/clj/clojure/core.clj
Expand Up @@ -378,6 +378,12 @@
[#^clojure.lang.IFn f & args]
(. f (applyTo (spread args))))

(defn vary-meta
"Returns an object of the same type and value as obj, with
(apply f (meta obj) args) as its metadata."
[obj f & args]
(with-meta obj (apply f (meta obj) args)))

(defn list*
"Creates a new list containing the item prepended to more."
[item & more]
Expand Down

0 comments on commit 92a2a04

Please sign in to comment.