chickadee » integer-map » fxmapping-adjust

fxmapping-adjust fxmap k procprocedure

The proc parameter is a procedure of type fixnum * → *.

Returns a new fxmapping in which the association (k, v) in fxmap is replaced by (k, (proc k v)). If k has no association in fxmap, then a fxmapping with the same associations as fxmap is returned.


 (fxmapping-adjust (fxmapping 64 "var")
                   (lambda (k s) (string-append s (number->string k)))))
 ⇒ ((64 . "var64"))