all? ( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
Factor handbook > The language > Collections > Sequence operations > Sequence combinators

Prev:any? ( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
Next:Pair-wise sequence combinators


Vocabulary
sequences

Inputs and outputs
seqa sequence
quota quotation with stack effect ( ... elt -- ... ? )
?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.

Definition


: all? ( ... seq quot: ( ... elt -- ... ? ) -- ... ? )
setup-each all-integers? ; inline