map-reduce-outputs ( quot mapper reducer -- quot )
Factor handbook > The language > Combinators > Smart combinators

Prev:reduce-outputs ( quot operation -- )
Next:smart-apply ( quot n -- )


Vocabulary
combinators.smart

Inputs and outputs
quota quotation
mappera quotation
reducera quotation


Word description
Infers the number of outputs from quot and, treating those outputs as a sequence, calls map-reduce on them.

Examples
USING: math combinators.smart prettyprint ; [ 1 2 3 ] [ sq ] [ + ] map-reduce-outputs .
14


Definition