3&& ( obj1 obj2 obj3 quots -- ? )
Factor handbook » The language » Combinators » Short-circuit combinators

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


Vocabulary
combinators.short-circuit

Inputs
obj1an object
obj2an object
obj3an object
quotsa sequence of quotations with stack effect ( obj1 obj2 obj3 -- ? )


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

: 3&& ( obj1 obj2 obj3 quots -- ? ) 3 n&& ;