I dont think so
# getting-started
a
I dont think so
s
Copy code
list.windowed(size = 2, step = 2)
      .map { (a, b) -> a to b }
      .toMap()
seems to achieve your goal
👍 4
a
can confirm just tried in a sandbox
r
You can combine the
map
and
toMap
steps with `associate`:
Copy code
list.windowed(size = 2, step = 2)
    .associate { (a, b) -> a to b }
s
more hidden gems
it’s like christmas!
👍 4
a
🤯