[Issue 4801] New: Incorrect stride example
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 3 08:41:33 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4801
Summary: Incorrect stride example
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2010-09-03 08:41:16 PDT ---
From: http://www.digitalmars.com/d/2.0/phobos/std_range.html#stride
int[] a = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ];
assert(equal(stride(a, 3) == [ 1, 4, 7, 10 ][]));
The assert should be:
assert(equal(stride(a, 3), [ 1, 4, 7, 10 ]));
--
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