I've always liked the way assoc and dissoc return the original map instance
when there's no change to be made. But this is not apparently true of
records. e.g.:
> (def m {:a 1})
> (identical? m (dissoc m :x))
; true
> (def r <<a record with an "a" field>>)
> (identical? r (dissoc r :x))
; false
Does anyone know if there's a good reason for this?
Cheers,
Matthew.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en