On Sep 18, 2011, at 1:10 PM, Stuart Halloway wrote: >> The other example that immediately leaps to mind is that the family of >> get-in, get, and update-in implies the existence of update. It is rather >> startling to me that update does not exist in the core. > > This is a good question. I don't know why I never noticed its absence. Have > other people missed this?
What would an `update` function do? update-in is for swapping out a value accessible via a particular "chain" of keys. Dropping the -in suffix implies to me that `update` would operate on the top-level data structure, but that's what assoc/dissoc/conj do already. - Chas -- 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