https://kotlinlang.org logo
#getting-started
Title
# getting-started
k

karelpeeters

02/20/2018, 9:38 AM
Or something like
list.windowed(2, partialWindows = true)
, although that creates lists instead of pairs and the destructuring declaration won't work for the last "pair".