2009/6/13 James Reeves <weavejes...@googlemail.com>:
>
> On Jun 13, 9:39 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote:
>> Well, the array is iterated once by map, the new seq created by map is
>> iterated once by filter, and the new seq created by filter is iterated
>> once by count, so right, I should have written : 3 walks of seqs of
>> the size of the array.
>
> The filter and map functions produce lazy seqs, so the sequence is
> only walked once.

Well, isn't walking 3 different sequences 1 time almost equivalent (in
terms of computer work) to walking 3 times one sequence ?

And nevertheless, if I insist, it's not really because there *could*
be a performance problem (though I guess there will, but only
benchmark would tell), but rather because the essence of the problem
seems to be needing a simple reduction with early break capability,
and no more :-)


>
> - James
> >
>



-- 
Cordialement,

Laurent PETIT

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to