1&& ( obj quots -- ? )
Factor documentation > 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 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
USING: combinators.short-circuit.private kernel ;

IN: combinators.short-circuit

: 1&& ( obj quots -- ? ) [ with ] unoptimized-&& ;