;-)

Still, I dont believe.

I get the same difference with

user=> (time (map fib0 (range 100)))
"Elapsed time: 1.916445 msecs"

more than 5 seconds

(0 1 1 2 3 5 8 13 21 34 ...)

user=> (time (map fib0 (iterate inc 0)))
"Elapsed time: 0.104203 msecs"
(0 1 1 2 3 5 8 13 21 34 ...)

Hm.

Regards, alux

Meikel Brandmeyer schrieb:
> Hi,
>
> On Mar 19, 12:34 pm, alux <alu...@googlemail.com> wrote:
>
> > You didnt try this, as I can judge, because you responded in finite
> > time ;-)
>
> Ah, yes. Intersperse with (take 10 ...) at will. :)
>
> > My main irritation is still: Why do my range and my iterate version
> > differer in their print beheavior?
>
> Because with range you get as first argument to fib0 a 0, while with
> iterate you get a 1 as first parameter to fib0.
>
> Sincerely
> Meikel

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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to