On Sun, 7 Mar 2010, Edgar Z. Alvarenga wrote:

Hello,

why I can't define a recursive vector using Data.Vector, like in
the example:

import qualified Data.Vector as V

let fib = 0 `V.cons` (1 `V.cons` V.zipWith (+) fib (V.tail v))

Since I liked to have both element-wise lazy construction and packed data, I created a data-structure for that purpose:
  http://code.haskell.org/storablevector/Data/StorableVector/Cursor.hs
However, those vectors/arrays are finite, but could be extended to a chunky infinite structure.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to