On Sunday, 5 November 2017 at 22:47:10 UTC, Nicholas Wilson wrote: > f.multiwayMerge.chunks(128).joiner.chunkBy!(pred).writeln; > > since it seems to be the iteration that stuff things up and > this changes it. If that doesn't work you could try rolling your own version of chunk with `take` and a static array.