Konrad Hinsen a écrit : > there is nothing in the standard library to add a > tag to an existing metadata map. All there is is (with-meta ...), > which replaces the metadata map completely. > It itched me before and since there's already alter-meta! maybe there should also be an alter-meta (or better name) in core.clj.
Christophe (defn alter-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 o (apply f (meta o) args))) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---