Solutionunvalidated
If you want to avoid that then you need a way to separate that initial line and capture its contents — The main issue to overcome here is that you are treating the first line of your CSV specially. Tension: its contents inform the processing of all the other lines. Outcome: here is where `filter()` comes in, and the fact that lambdas close over their context.
8f32ac68-2b38-4f35-9515-b9c53744eecb
If you want to avoid that then you need a way to separate that initial line and capture its contents — The main issue to overcome here is that you are treating the first line of your CSV specially. Tension: its contents inform the processing of all the other lines. Outcome: here is where filter() comes in, and the fact that lambdas close over their context.