On Wed, Dec 15, 2010 at 12:12 AM, Mark Engelberg <mark.engelb...@gmail.com> wrote: > One thing I've argued for in the past, but got no traction: > We have: > get-in, get > assoc-in, assoc > update-in, ? > Let's add update to go with update-in.
Let's give them absolutely no excuse like "we don't have time to write the code because so much else is on our plates right now!" as well: (defn update [m k f args] (assoc m k (apply f (get m k) 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 Note that posts from new members are moderated - please be patient with your first post. 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