I got into funny discussion about speed of lazy lists versus eager lists in clojure:
http://www.reddit.com/r/programming/comments/91ha3/how_to_start_using_lisp_at_work/c0b44xp I did this small example to test it: user> (time (dorun (map #(+ % 1) (map #(+ % 1) (map #(+ % 1) (repeat 1000000 7)))))) "Elapsed time: 1588.133219 msecs" nil user> (time (dorun (map #(+ % 1) (doall (map #(+ % 1) (doall (map #(+ % 1) (doall (repeat 1000000 7))))))))) "Elapsed time: 4953.661747 msecs" nil What do you guys think about discussion ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---