https://d.puremagic.com/issues/show_bug.cgi?id=11753
Summary: byKeyValue missing from built-in hashtables
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrei Alexandrescu <[email protected]> 2013-12-16 14:56:10
PST ---
There's no range to iterate keys and values simultaneously in a built-in hash
table. foreach offers a baked-in way to iterate over keys and values with
"foreach (k, v; table)" but that cannot be passed down to algorithms.
The range returned by byKeyValye() should allow modifying the value but not the
key.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------