Hi, Am 03.10.2009 um 06:09 schrieb Vagif Verdi:
You can do so by with doall: (doall (map ... (filter ...)))Unfortunately this is not true. Yo are paying penalty for lazyness in this case. Try it yourself. Write non lazy versions of map and filter and time them against standard ones.
Did you time them also combined? (doall (map ... (filter ... x))) does traverse x once, while the hypothetical (eager (map ... (filter ... x))) traverses x twice. Take a long x and there you go...
Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature