3 ms·
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, * + * ... *;
by cygx 11y ago
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, * + * ... *;