[Issue 9119] [AA] Forward range addition to associative arrays.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 8 15:15:46 PST 2015
https://issues.dlang.org/show_bug.cgi?id=9119
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #12 from hsteoh at quickfur.ath.cx ---
Now that all the PR's have merged, here's the current situation:
- druntime now provides a byKeyValue method that returns a forward range of
opaque structs with .key and .value members.
- std.array in Phobos now provides a "nice" method byPair that wraps around
byKeyValue and returns a forward range of Tuple's of keys and values.
So this both satisfies the OP's original request (for .key and .value) and
later requests for Tuple compatibility.
--
More information about the Digitalmars-d-bugs
mailing list