Bug 15198 – evenChunks - std.range.chunks variant which slices range into N evenly-sized chunks
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P5
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-10-13T01:41:00Z
Last change time
2016-01-03T14:14:37Z
Keywords
pull
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0 by dlang-bugzilla — 2015-10-13T01:41:15Z
Split a source range into N chunks of approximately equal length. The source range will be a forward range with known length.
Unlike chunks, evenChunks will take a chunk count (not size), and each returned chunk will have either `source.length / N` or `source.length / N + 1` elements.
Comment #1 by dlang-bugzilla — 2015-10-13T01:44:41Z