[Issue 7148] New: Turn associative array byValue/byKey/byPairs into ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 21 10:36:47 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7148

           Summary: Turn associative array byValue/byKey/byPairs into
                    ranges
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-12-21 10:36:46 PST ---
Please, turn associativeArray.byValue(), associativeArray.byKey(),
associativeArray.byPairs() into Ranges. This allows this code to work:


import std.range;
void main() {
    auto aa = [1:["hello", "red"], 2:["blue", "yellow"]];
    auto r2 = join(aa.byValue()); // error
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list