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

cleiter

05/27/2016, 8:26 AM
you could use
list.zip(list.subList(1, list.size))
which gives you a list of pairs