Idiom #280 Filter map
Remove all the elements from the map m that don't satisfy the predicate p.
Keep all the elements that do satisfy p.
Explain if the filtering happens in-place, i.e. if m is reused or if a new map is created.
Remove all the elements from the map m that don't satisfy the predicate p.
Keep all the elements that do satisfy p.
Explain if the filtering happens in-place, i.e. if m is reused or if a new map is created.