digitalmars.D.bugs - [Issue 14224] New: std.range.chunks variable chunk size
- via Digitalmars-d-bugs (20/20) Feb 25 2015 https://issues.dlang.org/show_bug.cgi?id=14224
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 puremagic.com Reporter: john.loughran.colvin 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]] --
Feb 25 2015