Author(s): Lena Flood.
Version: 1.10#6 (2004/8/7, 21:46:39 CEST)
Version of last change: 1.9#236 (2003/12/22, 18:18:14 CET)
This module implements extendable arrays with logarithmic access time. It has been adapted from shared code written by David Warren and Fernando Pereira.
Arrayactually is an array.
aref(+Index, +Array, ?Element)
Index], or fails if
Index] has not been set.
arefa(+Index, +Array, ?Element)
aref/3, except that it unifies
Elementwith a new array if
Index] is undefined. This is useful for multidimensional arrays implemented as arrays of arrays.
arefl(+Index, +Array, ?Element)
aref/3, except that
for undefined cells. Thus,
arefl(_,_,)always succeeds no matter what you give in the first or second args.
aset(+Index, +Array, Element, -NewArray)
NewArraywith the result of setting
Listof pairs Index-Element of all the elements of
Arraythat have been set.
Go to the first, previous, next, last section, table of contents.