[Issue 14224] New: std.range.chunks variable chunk size
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Feb 25 03:47:22 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14224
Issue ID: 14224
Summary: std.range.chunks variable chunk size
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
It would be useful to be able to do this:
auto a = only(2,5,3);
auto b = iota(10);
b.chunks(a).writeln();
output:
[[0,1],[2,3,4,5,6],[7,8,9]]
--
More information about the Digitalmars-d-bugs
mailing list