Hash.value

Returns a value from the hash by name.

If the type parameter T is given, the value returned must match T. If no values with with matching a matching key and type exist within the hash, T.init is returned instead.

struct Hash(args...)
@property static
value
(
string name
T...
)
()
if (
hasKey(name) &&
T.length < 2
)

Parameters

name

The name of the key to search for.

T

An optional type constraint.

Meta