The function you're looking for is 'reset!'
But what I really want it something that doesn't require dereferencing syntax:
(zet! c (* c x))I'm not sure wether this is good style. Probably not.
Edit: Bah. Fixed an error.
Sadly, as far as I know, you need to roll your own tree-reduce.
(swap! c (partial * 2))
on two separate threads, c will always end up 4x the original value.These limitations exist for a reason.
(swap! c * 2)