chickadee » integer-map » fxmapping-filter

fxmapping-filter pred fxmapprocedure

Returns a fxmapping containing all of the associations of fxmap that satisfy pred (in the sense of fxmapping-find).

Example:

(fxmapping->alist
 (fxmapping-filter (lambda (_ v) (positive? v))
                   (fxmapping 0 2 1 -4 2 8 3 -16)))
 ⇒ ((0 . 2) (2 . 8))