thanks for the clarification .. I did know about the fact that I have to capture the return value .. but some how slipped my mind and assumed it was a bug .. I guess that will never happen again after burning my fingers this time ....
Sunil. On Thu, Jan 6, 2011 at 4:30 PM, Joost <jo...@zeekat.nl> wrote: > Joost wrote: > > you're supposed to use assoc! and > > friends as if they're pure functions. > > Just correcting myself for clarity: > > assoc! etc MAY modify their transient arguments, but not always, and > not always in the way you might think. The correct result of these > operations is their return value, but they are not pure functions > since you also - obviously - cannot rely on the transient arguments to > remain unchanged. > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- 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