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 result of the last quotation, or f


Word description
If every quotation in the sequence outputs a true value, outputs the result of the last quotation, otherwise outputs f.

Definition

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