If you can use 1.2, `zipWithNext()` will help: `l...
# getting-started
t
If you can use 1.2,
zipWithNext()
will help:
listOf(1, 2, 3, 4, 5, 6).zipWithNext().toMap()
EDIT: This is wrong, don't use it! 🙂