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