Wrote up today: <https://todd.ginsberg.com/post/ad...
# advent-of-code
t
k
zipWithNext()
and
chunked()
don't do the same thing.
Copy code
listOf(1,2,3,4).zipWithNext() // [(1,2),(2,3),(3,4)]
listOf(1,2,3,4).chunked(2) // [(1,2), (3,4)]
t
Ah, you're right. Brain fart.