filterMap f m
filters an NameMap
and simultaneously modifies the filtered values.
It takes a function f : Name → α → Option β
and applies f name
to the value with key name
.
The resulting entries with non-none
value are collected to form the output NameMap
.
Equations
Instances For