Additional hash map operations #
This module defines the operations map and filterMap on Std.HashMap.
Lemmas about these operations are found in Std.Data.HashMap.Lemmas.
@[inline]
def Std.HashMap.filterMap {α : Type u} {β : Type v} {γ : Type w} [BEq α] [Hashable α] (f : α → β → Option γ) (m : HashMap α β) :
HashMap α γ
Updates the values of the hash map by applying the given function to all mappings, keeping
only those mappings where the function returns some value.