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
seqa sequence
quota 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