POV-Ray : Newsgroups : povray.off-topic : Quote of the day : Re: Quote of the day Server Time
29 Jul 2024 02:22:49 EDT (-0400)
  Re: Quote of the day  
From: Orchid Win7 v1
Date: 3 Jul 2012 16:07:14
Message: <4ff350f2$1@news.povray.org>
On 03/07/2012 09:05 PM, Orchid Win7 v1 wrote:

> This is unfortunately O(n^2). But the trixy incantation
>
> fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
>
> is only O(n). And it works exactly /because/ of laziness. Otherwise,
> this would be an infinite loop which would never end.

...as opposed to those infinite loops that end after a while. o_O


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.