require
fn
V require(K, V)(ref V[K] aa, K key, lazy V value = V.init) refIf key is in aa, returns corresponding value; otherwise it evaluates value, adds it to the associative array and returns it.
Parameters
aa | The associative array. |
key | The key. |
value | The required value. |
Returns
The value.