Bug 7148 – Turn associative array byValue/byKey/byPairs into ranges
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-12-21T10:36:00Z
Last change time
2012-01-17T14:05:15Z
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2011-12-21T10:36:46Z
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
}
Comment #1 by bearophile_hugs — 2012-01-17T14:05:15Z
*** This issue has been marked as a duplicate of issue 4607 ***