[Haskell-cafe] Newbie: Appending arrays?

Dmitri O.Kondratiev dokondr at gmail.com
Thu Jul 10 12:05:54 EDT 2008

What is the best way to extend array?
I would use a list instead of array as it is easy to append, but need to
have random access to its elements later.
So in fact I need to start with an integer array of size 1. Next I may need
to add new elements to this array or modify values of the existing ones.

array :: (Ix a) => (a,a) -> [(a,b)] -> Array a b

allows construct an array of a fixed size. How to add more elements to the
array later?


Dmitri O. Kondratiev
dokondr at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080710/c669f8f7/attachment.htm

More information about the Haskell-Cafe mailing list