Bug 4801 – Incorrect stride example

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-09-03T08:41:00Z
Last change time
2010-09-03T16:29:30Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2010-09-03T08:41:16Z
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 ]));