Handbook
Glossary
member-eq? ( elt seq -- ? )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Testing sequences
Prev:
member? ( elt seq -- ? )
Next:
head? ( seq begin -- ? )
Vocabulary
sequences
Inputs
elt
an
object
seq
a
sequence
Outputs
?
a
boolean
Word description
Tests if the sequence contains the object.
Notes
This word uses identity comparison (
eq?
).
See also
sorted-member-eq?
Definition
USING:
kernel
;
IN:
sequences
:
member-eq?
( elt seq -- ? )
[
eq?
]
with
any?
;