chickadee » srfi-225 » dict-filter

dict-filter dto pred dictprocedure
dict-remove dto pred dictprocedure

Returns a dictionary similar to dict that contains just the associations of dict that satisfy / do not satisfy pred when it is invoked on the key and value of the association.

(dict-filter dto (lambda (k v) (= k 1)) dict)((1 . 2))
(dict-remove dto (lambda (k v) (= k 1)) dict)((3 . 4) (5 . 6))