On Thu, 14 Jun 2007, L.Guo wrote: > About the data. > > The whole image is of type [[a]], and after being devided, it is also [[a]].
I would store an image in an (Array (Int,Int)). This is not only more efficient, but also ensures statically that the image data is rectangular. I assume that you do not need infinite images. They can be represented by lists but not by arrays. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe