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

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


Vocabulary
combinators.short-circuit

Inputs
objan object
quotsa sequence of quotations with stack effect ( obj -- ? )


Outputs
?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

: 1|| ( obj quots -- ? ) 1 n|| ;