Looks up key; if it exists returns corresponding value else evaluates and returns defaultValue.
The associative array.
The key.
The default value.
The value.
auto aa = ["k1": 1]; assert(aa.get("k1", 0) == 1); assert(aa.get("k2", 0) == 0);
See Implementation
Looks up key; if it exists returns corresponding value else evaluates and returns defaultValue.