The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Chouser <chou...@gmail.com>
Date: Tue, 3 Mar 2009 21:30:15 -0500
Local: Tues, Mar 3 2009 9:30 pm
Subject: Re: doall, dorun, doseq, for
On Tue, Mar 3, 2009 at 2:54 PM, Mark Volkmann <r.mark.volkm...@gmail.com> wrote: A simple doseq does run about as fast as dorun on the same seq. Bus > I agree that using doseq instead of dorun results in code that is something like this would be more likely (let's pretend inc has useful side-effects): (defn f [] (dorun (map #(inc %) (range 10000000)))) (defn f2 [] (doseq [i (range 10000000)] (inc i))) The results would be the same, but dorun requires 'map', which creates user=> (time (f)) user=> (time (f2)) --Chouser You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||