Hi,

On Mon, Mar 15, 2010 at 01:21:22PM -0400, Garth Sheldon-Coulson wrote:

> Ah, maybe I should have read the thread on ensure before I posted this! =)
> 
> (dosync (ensure r) (alter r f))
> 
> works.

Now I'm confused. Calling ensure on r shouldn't have an effect since we
call alter on r anyway, no?

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