member? ( elt seq -- ? )
Factor documentation > Factor handbook > The language > Collections > Sequence operations > Testing sequences
Prev:bounds-check? ( n seq -- ? )
Next:member-eq? ( elt seq -- ? )


Vocabulary
sequences

Inputs and outputs
eltan object
seqa sequence
?a boolean


Word description
Tests if the sequence contains an element equal to the object.

Notes
This word uses equality comparison (=).

See also
sorted-member?

Definition
USING: kernel ;

IN: sequences

: member? ( elt seq -- ? ) [ = ] with any? ;