https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
t

todd.ginsberg

12/04/2019, 11:12 PM
k

Kroppeb

12/04/2019, 11:20 PM
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

todd.ginsberg

12/05/2019, 1:19 AM
Ah, you're right. Brain fart.
5 Views