[Issue 10660] New: ddoc on std.algorithm: Cheat sheet description for 'filter' is wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 17 01:46:46 PDT 2013


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

           Summary: ddoc on std.algorithm: Cheat sheet description for
                    'filter' is wrong
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: peterneubauer2 at gmail.com


--- Comment #0 from Peter Neubauer <peterneubauer2 at gmail.com> 2013-07-17 01:46:45 PDT ---
http://dlang.org/phobos/std_algorithm.html describes filter like this:
filter!"a > 0"([1, -1, 2, 0, -3]) iterates over elements 1, 2, and 0.

Actually, 0 is not greater than 0 and the result will be just 1, 2.

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