Using Arrays as Sets

SetContains


SetContains(array, value)


Returns the index in array if value is present in array, nil otherwise. The function uses equality testing (=) to determine whether value is 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