pair

Pair a key and a value toghether.

  1. Pair!(ValueType, KeyType) pair(ValueType value, KeyType key)
    @safe
    Pair!(ValueType, KeyType)
    pair
    (
    ValueType
    KeyType
    )
    (
    auto ref ValueType value
    ,
    auto ref KeyType key
    )
  2. alias paired = pair
  3. struct Pair(ValueType, KeyType)

Parameters

value ValueType

value to pair with key

key KeyType

key associated to value

Return Value

Type: Pair!(ValueType, KeyType)

Pair!(ValueType, KeyType) a pair of key => value.

Meta