Loading

PREDUCE


reducer framework
Since v1.0.5
Available on all platforms
See also

Behaves as REDUCE but produces a map of results keyed by the label map of each equivalence class.

Signature

Examples

NEWGTS 'a' RENAME { 'type' '1' } RELABEL 1 10 <% NaN NaN NaN 1 ADDVALUE %> FOR NEWGTS 'b' RENAME { 'type' '1' } RELABEL 1 10 <% NaN NaN NaN 1 ADDVALUE %> FOR NEWGTS 'a' RENAME { 'type' '2' } RELABEL 1 10 <% NaN NaN NaN 2 ADDVALUE %> FOR NEWGTS 'b' RENAME { 'type' '2' } RELABEL 1 10 <% NaN NaN NaN 2 ADDVALUE %> FOR 4 ->LIST [ SWAP [ 'type' ] reducer.product ] PREDUCE