I dont think so
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
๐Ÿคฏ