• Inserts a new entry with the key and value to the Map object immutably. If there is already an entry with the key, combiner will be called to merge their values.

    Type Parameters

    • V

    Parameters

    • combiner: ((newValue) => ((oldValue) => V))

      Function to merge values when found a duplicate key.

        • (newValue): ((oldValue) => V)
        • Parameters

          • newValue: V

          Returns ((oldValue) => V)

            • (oldValue): V
            • Parameters

              • oldValue: V

              Returns V

    Returns (<K>(key) => ((value) => ((m) => Map<K, V>)))

    A new one with the inserted entry.

      • <K>(key): ((value) => ((m) => Map<K, V>))
      • Type Parameters

        • K

        Parameters

        • key: K

        Returns ((value) => ((m) => Map<K, V>))

          • (value): ((m) => Map<K, V>)
          • Parameters

            • value: V

            Returns ((m) => Map<K, V>)

              • (m): Map<K, V>
              • Parameters

                • m: Map<K, V>

                Returns Map<K, V>

Generated using TypeDoc