• Sets a value in a two-level nested Map structure. Creates the inner map if it doesn't exist.

    Type Parameters

    • K1

      Type of keys in the outer map

    • K2

      Type of keys in the inner map

    • V

      Type of values stored in the inner maps

    Parameters

    • map: Map<K1, Map<K2, V>>

      The outer map containing inner maps

    • key1: K1

      The key for the outer map

    • key2: K2

      The key for the inner map

    • value: V

      The value to set in the inner map

    Returns Map<K1, Map<K2, V>>

    The updated outer map