Replacing module Array by IArray
Marcin 'Qrczak' Kowalczyk
qrczak@knm.org.pl
4 Apr 2001 14:48:33 GMT
Wed, 28 Mar 2001 21:11:59 +0200, andreas.marth@daimlerchrysler.com <andreas.marth@daimlerchrysler.com> pisze:
> The module Array exports module Ix (Haskell 98 Library Report).
> The module IArray doesn't export Ix (jet?).
Thanks, it will export it in ghc-5.00.
> I think a pack and unpack function to convert between IArray ix be
> and UArray ix ube via 'amap pack/unpack' would be useful.
Such conversion is as simple as
\a -> listArray (bounds a) (elems a)
or
\a -> array (bounds a) (assocs a)
so I don't think it needs a separate function.
--
__("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK