https://issues.dlang.org/show_bug.cgi?id=17526

Martin Nowak <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Martin Nowak <[email protected]> ---
That's definitely on the list, I proposed getOrSet as name.
http://forum.dlang.org/search?q=getOrSet
https://github.com/dlang/druntime/pull/1282/files#diff-7f36fe9957b2e56c0c468548c4e1b0aaR133

It could be added to today's hashtable using a small variation of _aaGetY
internally (taking a delegate for the initialization of the value).

--

Reply via email to