Handbook
Glossary
all? ( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Sequence combinators
Prev:
any? ( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
Next:
none? ( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
Vocabulary
sequences
Inputs
seq
a
sequence
quot
a
quotation
with stack effect
( ... elt -- ... ? )
Outputs
?
a
boolean
Word description
Tests if all elements in the sequence satisfy the predicate by checking each element in turn. Given an empty sequence, vacuously outputs
t
.
See also
any?
,
none?
Definition
USING:
math
sequences.private
;
IN:
sequences
:
all?
( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
sequence-operator
all-integers-from?
;
inline