Hi :
Say, I have a (def *a (ref {:b [{:c 5}]})) .
I want to add 1 to the :c inside, how would I write?
(Note: the value 5 is in (:b 0 :c), while 0 is the array index)
(dosync (alter *a ______ )) ; please help me fill the blank.
Someone mention I can use the zipper library or the walker library,
but after I checked I still have no idea how to make it.
Thanks.
--
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