Skip to content

KeyValuePair

1 min read

Import: import system.collections;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

KeyValuePair

One key/value entry (value type — no heap allocation of the pair itself).

public struct KeyValuePair<K, V>

key

The key under which value is stored.

public key: K

value

The value stored under key.

public value: V

constructor

Builds a pair from key and value.

public constructor(key: K, value: V)