Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Set

func Set(key: K, value: V) -> ()

Declaring type: HashMap<K, V>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: HashMap.rvn

Implements MutableMap<K, V>.Set

Inserts a missing key or replaces the value associated with an existing key.

Parameters

Name Type Description
key K The key to look up or update.
value V The value on which this operation acts.

Return value

()