Ah, thank you.
But what I really want it something that doesn't require dereferencing syntax:
(zet! c (* c x))But what I really want it something that doesn't require dereferencing syntax:
(zet! c (* c x)) (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)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.