Summary: map.filter.array run map delegate an incorrect number
                    of time.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from deadalnix <> 2012-10-11 14:12:44 PDT ---
See sample code :

import std.algorithm;
import std.range;

void main() {
    uint i;

    uint[] iarray;
    iarray.length = 10;!(a => i++).filter!(a => a > 0).array();

    import std.stdio;

This program output 19. In other terms, map delegate is run twice on every
element on which filter's delegate returns true.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to