get

fninout(V) get(K, V)(inout(V[K]) aa, K key, lazy inout(V) defaultValue)

If key is in aa, returns corresponding value; otherwise it evaluates and returns defaultValue.

Parameters

aaThe associative array.
keyThe key.
defaultValueThe default value.

Returns

The value.
fninout(V) get(K, V)(inout(V[K]) * aa, K key, lazy inout(V) defaultValue)

ditto