MultiValueMap.getFirst

Gets the first value associated with a given key, as per the order in which the values were inserted.

struct MultiValueMap(KeyType, ValueType, alias KeySort = (a, b) => a < b, alias KeyEquals = (a, b) => a == b)
const
Optional!ValueType
getFirst
(
KeyType k
)

Parameters

k KeyType

The key to get the first value of.

Return Value

Type: Optional!ValueType

An optional contains the value, if there is at least one value for the given key.