HashMap.get

Get a value from the map, or return the given default value, which is lazy-evaluated.

  1. V get(K key, V2 def)
    struct HashMap(K, V)
    @safe pure const
    V
    get
    (
    V2
    )
    (
    K key
    ,
    lazy V2 def
    )
    if (
    is(V2 : V)
    )
  2. V get(K key)

Parameters

key K

The key in the map.

def V2

A lazy default value.

Return Value

Type: V

A value from the map, or the default value.

Meta