Returns the value for the key key, inserting value lazily if it is not present.
Key.
Lazy value.
The value for the key key, or value if there was no value there.
MutexedAA!(string[int]) aa; aa.setup(); // important! assert(!aa.has(42)); string hello = aa.require(42, "hello"); assert(hello == "hello"); assert(aa[42] == "hello");
Returns the value for the key key, inserting value lazily if it is not present.