void main() { import std.stdio, std.range, std.algorithm; auto list = [1,2,3,4,5,6]; list.chunks(2).each!writeln; }