
14 Feb
2011
14 Feb
'11
10:44 a.m.
On 14 February 2011 10:19, Pierre-Etienne Meunier
For instance, it allows you to program a single function that works for any dimensionality of the array.
I don't know how vector handles it, but you may be interested to look at the repa library (http://hackage.haskell.org/packages/archive/repa/1.1.0.0/doc/html/Data-Array...). This lets you write dimensionality-polymorphic functions by using the Shape typeclass: http://hackage.haskell.org/packages/archive/repa/1.1.0.0/doc/html/Data-Array... Max