
7 Jul
2010
7 Jul
'10
4:58 p.m.
Hello, There are a lot of options. The "array" package, which is included with GHC, provides both mutable and immutable arrays of arbitrary dimensions. A quick scan of hackage shows ArrayRef, ix-shapable, and judy as alternatives, among others. Immutable arrays can be pure, but all mutable array interfaces will require a monad of some type. I usually think ST-based mutability is easiest to work with. John
From: Mihai Maruseac
Hi,
A friend of mine wanted to do some Cellular Automata experiments in Haskell and was asking me what packages/libraries are there for multidimensional matrices. I'm interested in both immutable and mutable ones but I don't want them to be trapped inside a monad of any kind.
Any hints?
-- MM