My petty contribution to the solution of @lud with Stream.intersperse/2:
file
...
|> Stream.intersperse(",")
|> Stream.chunk_every(2)
By applying Stream.every/2 with 2 as argument new chunks are created into the stream by combining the previous records with the comma from intersperse.
Proud of my finding! ![]()






















