chickadee » integer-map » fxmapping-for-each

fxmapping-for-each proc fxmapprocedure

proc is a procedure of type fixnum * → *.

Calls proc on the key and value of each association in fxmap and returns an unspecified value. fxmap in traversed in ascending numerical order of keys.

Example:

(let ((sum 0))
  (fxmapping-for-each (lambda (_ v) (set! sum (+ sum v)))
                      (fxmapping 0 1 1 2 2 4 3 8))
  sum)
 ⇒ 15