[Haskell-cafe] About Fibonacci again...

Alfonso Acosta alfonso.acosta at gmail.com
Wed Nov 7 20:57:20 EST 2007


How about this,

infiniteRS :: [Int]
infiniteRS = let acum a1 a2 = a2 ++ acum (a1++a2) a1 in 1 : acum [1] [0]

it certainly fits in one line but it's not really elegant


More information about the Haskell-Cafe mailing list