You basically have two choices. Choice 1, give names to each of your nodes, and link names to names. (def cycle {:a {:value 2, :link :b}, :b {:value 3, :link :a}}
Choice 2, use one of Clojure's reference types (def a (ref {:value 2})) (def b (ref {:value 3})) (dosync (alter a assoc :link b) (alter b assoc :link a)) I tend to prefer Choice 1, when applicable. -- 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