1|| ( obj quots -- ? )
Factor handbook » The language » Combinators » Short-circuit combinators

Prev:0|| ( quots -- ? )
Next:2|| ( obj1 obj2 quots -- ? )


Vocabulary
combinators.short-circuit

Inputs and outputs
objan object
quotsa sequence of quotations with stack effect ( obj -- ? )
?the first true result, or f


Word description
Returns true if any quotation in the sequence returns true. Each quotation takes the same element from the datastack and must return a boolean.

Definition