[Issue 17526] Add a set method for AA

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 10 06:08:55 PDT 2017


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #7 from Martin Nowak <code at dawg.eu> ---
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).

--


More information about the Digitalmars-d-bugs mailing list