rrva
07/08/2018, 8:02 AM[a, b, c, d]
what’s a simple and idiomatic way to transform this into a stream of pairs [[a, b], [c, d]]
Andreas Sinz
07/08/2018, 9:22 AMrrva
07/08/2018, 9:28 AMAndreas Sinz
07/08/2018, 9:57 AMrrva
07/09/2018, 7:41 PMAndreas Sinz
07/09/2018, 8:00 PMStream
with Sequence
and use chunked
2. stream.toSequence().chunked(2).toStream()
3. ask on stackoverflow or somewhere else how to do it in pure java