[Haskell-cafe] How does one delare a 2D STUArray in Haskell?

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Sep 25 06:13:47 EDT 2009

Hello Casey,

Friday, September 25, 2009, 11:22:25 AM, you wrote:

> Well that makes sense, but for a learner, how is he/she supposed to
> know that 'i' could be '(i,i)' or for that matter a tuple of n of
> those i's?

look at Ix class instances: http://www.haskell.org/ghc/docs/latest/html/libraries/base/GHC-Arr.html#v%3ArangeSize

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list