Key.
Delegate to invoke to create a new value if it doesn't exist.
Delegate to invoke to update an existing value.
MutexedAA!(int[int]) aa; aa.setup(); // important! assert(!aa.has(1)); aa.update(1, () => 42, (int i) => i + 1); assert(aa[1] == 42); aa.update(1, () => 42, (int i) => i + 1); assert(aa[1] == 43);
Updates the value for the key key in the internal associative array, invoking the first of the passed delegate to insert a new value if it doesn't exist, or the second selegate to modify it in place if it does.
Note: Doesn't compile with compilers earlier than version 2.088.