On Oct 26, 8:12 pm, samppi <rbysam...@gmail.com> wrote: > According to the docs, the function passed into an add-watch call > receives four arguments. Its first argument is a "key". This key seems > to be the same key as the key passed into the add-watch call, and so > would always be the same, for the same ref and function. What is the > point of this argument then? When would it vary?
The last part of add-watch's documentation explains it (when you want to remove the watcher again, you need the key to identify it). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---