Thanx!,
That is exactly what I was looking for!,
Being a clojure newbie and a non-native speaker it is hard to find
the correct function among many in clojure core API :-)
If only the documentation would provide simple examples like you
provided...
Am 14.10.2010 um 23:07 schrieb Henk:
> Does dotimes force evaluation?,
At a different level. (dotimes [n 10000] (for ...)) does evaluate the for form. But it returns a seq which is never realised. So you do effectively … nothing. (dotimes [n 10000] (into [] (for ...))) as in your example does consume the sequence and hence realises it. So all the work defined in the for form is actually done. However this is do to into being eager and has nothing to do with dotimes.
Sincerely
Meikel