HashMap.get

Get a value from the map, or return V.init if a value is not set for a given key.

  1. V get(K key, V2 def)
  2. inout(V) get(K key)
    struct HashMap(K, V)
    inout
    inout(V)
    get
    (
    K key
    )
    if ()

Parameters

key K

The key in the map.

Return Value

Type: inout(V)

A value from the map, or the default value.

Meta