Handbook
Glossary
all-eq? ( seq -- ? )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Groups and clumps
Prev:
monotonic? ( seq quot: ( elt1 elt2 -- ? ) -- ? )
Next:
all-equal? ( seq -- ? )
Vocabulary
grouping
Inputs
seq
a
sequence
Outputs
?
a
boolean
Word description
Tests if all elements in the sequence are the same identical object. Yields true with an empty sequence.
See also
monotonic?
,
all-equal?
Definition
USING:
kernel
;
IN:
grouping
:
all-eq?
( seq -- ? )
[
eq?
]
monotonic?
;