next up previous contents
Next: Searching Sequence Databases Up: Searching Functions Previous: Ordered Searches

Searching Arrays

Calling Sequence:
SearchArray(t, A)
t : { string, real}
A : array

Returns: {0, posint}

Synopsis: The function SearchArray returns the index of an element in an array if it is a member of the array. Otherwise it returns 0.


> SearchArray(5, [1, 2, 7, 5, 8]);
> SerachArray('hi', ['hello', 'hallo', 'hey', 'hoi']);

Gaston Gonnet