sorted-member? ( obj seq -- ? )
Factor handbook > The language > Collections > Sequence operations > Binary search

Prev:sorted-index ( obj seq -- i )
Next:sorted-member-eq? ( obj seq -- ? )


Vocabulary
binary-search

Inputs and outputs
objan object
seqa sorted sequence
?a boolean


Word description
Tests if the sorted sequence contains elt. Equality is tested with =.

See also
member?

Definition