(dotimes [x 10] ...) should do the trick if you're just interested in side
effects.
On Jun 16, 2011, at 12:24 PM, Baishampayan Ghose wrote:
> 'for' is not recommended for causing side-effects. Since you are not using
> the return value of the for comprehension, the lazy sequence is not getting
'for' is not recommended for causing side-effects. Since you are not using
the return value of the for comprehension, the lazy sequence is not getting
realised. You can either use 'doall' around it or better still, use 'doseq'.
Hope that helps.
Regards,
BG
---
Sent from phone. Please excuse bre
Hi All,
I have a ref with a watcher on it, and I call another function from
the
watch function. I can see that call happens, but the for construct
doesn't
seem to run. Any idea why this is? Am I doing something wrong?
Here is a simplified version of the code:
(def numbers (ref #{1 2 3 4 5 6 7 8