Using Arrays as Sets
SetAdd(array, valueToAdd, uniqueOnly)
uniqueOnly
is nil
, this routine adds valueToAdd
to array
. If uniqueOnly
is not nil
, the routine adds valueToAdd
only if it is not already present in array
.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996