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, lazy V2 def)
  2. inout(V) get(K key)
    struct HashMap(K, V)
    inout(V)
    get
    inout
    (
    K key
    )
    if (
    isAssignmentCopyable!(Unqual!K) &&
    isAssignmentCopyable!(Unqual!V)
    )

Parameters

key
Type: K

The key in the map.

Return Value

Type: inout(V)

A value from the map, or the default value.

Meta