> > user=>(def current* (merge (uhoh* :event)(why* :event))) > #'user/current* > > here's my problem: > > user=> current* > {:stuff "ELI", :date #<user$fn__2507 > user$fn__2...@4fa3551c>, :name "EOW"} > > I was hoping this kind of a call would yield: > > {:stuff "ELI", :date "Tue 22 Jun 2010 17:45:32 MDT", :name > "EOW"} > > I need the date representing the time I assign the def (evaluated at > call time) and I don't know which keys will have an Ifn or just a > string etc. > > Is there existing falicilites to make this happen? An existing > function call perhaps not obvious to me? Or do I need to write custom > loops to cycle through and handle each item? > > Thanks, > Tim > > That would be completely un-idiomatic. The point of immutable structures is that they don't mutate. You are thinking in javaesque object orientation where you mix state and identity.
You might be interested in Rich's take on that question: http://clojure.org/state -- 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