digitalmars.D - byKey and byValue
- Andrei Alexandrescu (11/11) Jan 16 2012 I just submitted a pull request for true byKey and byValue ranges.
- bearophile (13/14) Jan 16 2012 Oh, nice.
I just submitted a pull request for true byKey and byValue ranges. https://github.com/andralex/druntime/commit/cd7b477b83cc8a75a90258bd2ab63fa8c92ba10b Over time I plan to slowly but surely migrate stuff from the opaque implementation in druntime/src/rt/aaA.d into the templated implementation in druntime/src/object_.d. The new implementation may preserve opacity partially or totally, but would have a lot to gain from direct/inlined calls to the hash function. This is the sort of thing that is good to migrate from the arcane implementation in the bowels of the compiler, into the standard runtime library. Andrei
Jan 16 2012
Andrei Alexandrescu:I just submitted a pull request for true byKey and byValue ranges.Oh, nice. Some issues related: http://d.puremagic.com/issues/show_bug.cgi?id=4179 http://d.puremagic.com/issues/show_bug.cgi?id=4607 http://d.puremagic.com/issues/show_bug.cgi?id=4704 http://d.puremagic.com/issues/show_bug.cgi?id=5075 http://d.puremagic.com/issues/show_bug.cgi?id=5466 http://d.puremagic.com/issues/show_bug.cgi?id=5555 http://d.puremagic.com/issues/show_bug.cgi?id=7148 One of those issues asks for a AA.byPairs too (that yields std.typecons.Tuples of key-value, like in Python). Bye, bearophile
Jan 16 2012