[mercury-users] Bi-dimensional Arrays??

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Dec 6 22:22:42 AEDT 2002


Noel  Pinto, you wrote:
> I would like to know whether we could have bi- dimensional arrays 
> in Mercury??

Yes.

> If yes, Plz tell me how it is possible.

You can write a module which provides bi-dimensional arrays as an abstract
data type.  In the implementation section of the module, they can be
implemented as either arrays of arrays, or as a single array whose
size is the product of the two dimensions.

-- 
Fergus Henderson              | Designing grand concepts is fun;
fjh at cs.mu.oz.au               | finding nitty little bugs is just work.
http://www.cs.mu.oz.au/~fjh   | -- Brooks, in "The Mythical Man-Month".
PGP key fingerprint: 00 D7 A2 27 65 09 B6 AC  8B 3E 0F 01 E7 5D C4 3F
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list