preserving ( quot -- )
Factor handbook » The language » Combinators » Smart combinators

Prev:drop-outputs ( quot -- )
Next:keep-inputs ( quot -- )


Vocabulary
combinators.smart

Inputs
quota quotation


Outputs
None

Word description
Calls a quotation and leaves any consumed inputs on the stack beneath the quotation's outputs.

Examples
USING: combinators.smart kernel math prettyprint ; 1 2 [ + ] preserving [ . ] tri@
1 2 3


Definition