Hi,

Am 25.07.2011 um 23:12 schrieb Sam Aaron:

> So what if I would like #'update to return a boolean representing whether the 
> state has changed rather than call #'changed-fn internally? (which is 
> actually what i'm trying to do, I just refactored the example to be a lot 
> simpler and hopefully clearer).

Since this is callback based, you can't return a value. Do you want more 
something like a polling solution? Then you'll have to roll your own with an 
atom and a clojure.lang.PersistentQueue.

Sincerely
Meikel

-- 
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

Reply via email to