Documentation

Std.Data.DHashMap.AdditionalOperations

Additional dependent hash map operations #

This file defines the operations map and filterMap on Std.DHashMap. Lemmas about these operations are found in Std.Data.DHashMap.Lemmas.

theorem Std.DHashMap.Raw.WF.filterMap {α : Type u} {β : αType v} {δ : αType w} [BEq α] [Hashable α] {m : Raw α β} (h : m.WF) {f : (a : α) → β aOption (δ a)} :
theorem Std.DHashMap.Raw.WF.map {α : Type u} {β : αType v} {δ : αType w} [BEq α] [Hashable α] {m : Raw α β} (h : m.WF) {f : (a : α) → β aδ a} :
(Raw.map f m).WF
@[inline]
def Std.DHashMap.filterMap {α : Type u} {β : αType v} {δ : αType w} [BEq α] [Hashable α] (f : (a : α) → β aOption (δ a)) (m : DHashMap α β) :
DHashMap α δ

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.

Equations
    Instances For
      @[inline]
      def Std.DHashMap.map {α : Type u} {β : αType v} {δ : αType w} [BEq α] [Hashable α] (f : (a : α) → β aδ a) (m : DHashMap α β) :
      DHashMap α δ

      Updates the values of the hash map by applying the given function to all mappings.

      Equations
        Instances For