I commonly resort to this, but it uses three lookups.
auto p = key in aa; if (p is null) { aa[key] = inital; p = key in aa; } //...
I commonly resort to this, but it uses three lookups.
auto p = key in aa; if (p is null) { aa[key] = inital; p = key in aa; } //...