On 14 February 2011 10:19, Pierre-Etienne Meunier <[email protected]> wrote: > 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-Repa.html). 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-Repa-Shape.html#t:Shape Max _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
