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.
Function:
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?
Thanks!
--
Dmitri O. Kondratiev
dokondr@gmail.com
http://www.geocities.com/dkondr