Usage
linearSearch(t, a)
linearSearch(t, a, n)
Signature
linearSearch: (T, %, MachineInteger) Boolean, MachineInteger, T
Parameter | Type | Description |
---|---|---|
t | T | the value to search for |
a | % | a finite linear structure |
n | MachineInteger | an initial index (optional) |
Returns
Returns (found?, i, a.i) such that if found? is true, is not in otherwise. If the optional argument n is present, then the search starts at the entry a.n and ignores the previous ones.
See Also
findAll