Hi,

On Mar 19, 1:39 pm, alux <alu...@googlemail.com> wrote:

> Still, I dont believe.

You should...

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

How does this fit to following?

> user=> (time (map fib0 (iterate inc 1)))
> "Elapsed time: 0.913524 msecs"
> (2 3 5 8 13 21 34 55 89 144 ...)
  ^^^

The example you posted can't be. With the fib0 you posted you get:

(fib0 0) => 1
(fib0 1) => (+ (fib0 0) (fib0 -1)) => (+ 1 1) => 2

So what you posted above can't be true. At least not with the fib0 you
gave in your original post.

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