Bug 10660 – ddoc on std.algorithm: Cheat sheet description for 'filter' is wrong
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-17T01:46:00Z
Last change time
2013-07-21T06:59:00Z
Keywords
pull
Assigned to
nobody
Creator
peterneubauer2
Comments
Comment #0 by peterneubauer2 — 2013-07-17T01:46:45Z
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.