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
objan object
seqa sorted sequence


Outputs
?a boolean


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

See also
member?

Definition