You're right, the scenario that I described doesn't need it. In my
actual code I need it because the function actually reads
#(conj (or % #{}) constraint#)If I don't do that, I get a list instead of a set. On Jul 5, 5:12 pm, Meikel Brandmeyer <[email protected]> wrote: > Hi, > > Am 05.07.2009 um 07:27 schrieb Rowdy Rednose: > > > user=> (dosync (alter gnu-rms update-in [:key1 :key2 :key3] #(conj % > > "foo"))) > > > {:key1 {:key2 {:key3 #{"foo"}}}} > > You actually don't need the anonymous function... > > (dosync > (alter gnu-rms update-in [:key1 :key2 :key3] conj "foo")) > > Sincerely > Meikel > > smime.p7s > 2KViewDownload --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
