- map-reduce f init mapprocedure
Reduces the entries of map by applying them to f together with the current reduction value, starting with init.
Example:
(define m (persistent-map 'foo 1 'bar 2)) (map-reduce cons* '() m) => (bar 2 foo 1)
Reduces the entries of map by applying them to f together with the current reduction value, starting with init.
Example:
(define m (persistent-map 'foo 1 'bar 2)) (map-reduce cons* '() m) => (bar 2 foo 1)