2selector ( quot -- selector accum1 accum2 )
Factor handbook > The language > Collections > Sequence operations > Implementing sequence combinators

Prev:selector-as ( quot exemplar -- selector accum )


Vocabulary
sequences

Inputs and outputs
quota quotation
selectora quotation
accum1a vector
accum2a vector


Word description
Creates two new vectors to accumulate values based on a predicate. The first vector accumulates values for which the predicate yields true; the second for false.

Definition