3 ms·
Allowing one to simplify to: fibs = 1 : 1 : zipWith (+) fibs (tail fibs) Involving zip`ap`tail, the Aztec god of consecutive numbers: fibs = 1 : 1 : (zip
by aristidb 16y ago
Allowing one to simplify to:
fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
Involving zip`ap`tail, the Aztec god of consecutive numbers:
fibs = 1 : 1 : (zipWith (+) `ap` tail) fibs
Or, pointlessly:
fix $ (1:) . (1:) . (zipWith (+) `ap` tail)