[Issue 5075] std.algorithm.map/filter don't support associative arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 17 14:15:04 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|std.algorithm.map/filter    |std.algorithm.map/filter
                   |don't support associative   |don't support associative
                   |arrays or their             |arrays
                   |byKey()/byValue()           |


--- Comment #4 from bearophile_hugs at eml.cc 2012-01-17 14:15:01 PST ---
After fixing issue 4607 this doesn't work still:


import std.algorithm: map, filter;
void main() {
    int[int] data = [1:4, 2:3, 3:1, 4:0];
    auto r1 = map!(x => -x)(data);
    auto r2 = filter!(x => x > 2)(data);
}


Also restricted the name of this issue.

-- 
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