|| ( quots -- quot )
Smart short-circuit combinators

Prev:&& ( quots -- quot )


Vocabulary
combinators.short-circuit.smart

Inputs
quotsa sequence of quotations


Outputs
quota quotation


Word description
Infers the number of arguments that each quotation takes from the stack. Each quotation must take the same number of arguments. Returns true if any quotation yields true, and stops early when one yields true.

Examples
Smart combinators will infer the two inputs:
USING: prettyprint kernel math combinators.short-circuit.smart ; 2 3 { [ - 1 = ] [ + 5 = ] } || .
t


Definition