On Friday, February 7, 2014 2:23:33 AM UTC, Sean Corfield wrote:
>
> On Feb 6, 2014, at 12:58 PM, Stuart Sierra 
> <the.stua...@gmail.com<javascript:>> 
> wrote:
>
> I think (reduce + (range N)) is commonly used in **examples**, not 
> necessarily in real applications.
>
>
> I'd have to agree: I don't see anything like that in our 20kloc at World 
> Singles. I see a handful of (reduce + data) for arbitrary series of data 
> values.
>

On a slightly different topic: why reduce and not apply?

user=> (time (reduce + (range 10000000)))
"Elapsed time: 402.17 msecs"
49999995000000
user=> (time (apply + (range 10000000)))
"Elapsed time: 361.099043 msecs"
49999995000000

 

> Sean Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to