News for hackers. Stuff that matters.
Re:Once you go functional, you can never go back by cygx on Monday May 18, 2015 @09:27AM (#9564262)
The Haskell code in question:

    fibs = 1:1:zipWith (+) fibs (tail fibs)
It's also a common showcase for Perl6 lazy lists:

    my @fibs = 1, 1, * + * ... *;
Re:Once you go functional, you can never go back by cygx on Monday May 18, 2015 @12:32PM (#9565332)
Note that Perl6 uses big integers by default, so this will work even beyond the limit n=92 at which 64-bit integers will overflow.
Re:Once you go functional, you can never go back by dllthomas on Monday May 18, 2015 @08:23PM (#9567577)
Haskell does this, too.
Re:Once you go functional, you can never go back by codygman on Tuesday May 19, 2015 @04:46AM (#9568746)
I will admit perl 6 is pretty damn cool. I'll definitely have to look at it soon.