Join Slack
Powered by
If that's too much code and you use it often enoug...
# announcements
r
Ruckus
07/11/2016, 9:40 PM
If that's too much code and you use it often enough, you could always do
fun <T> List<T>.zip() = zip(drop(1))
. They you can just say
listOf(1, 2, 3, 4, 5).zip()
.
Open in Slack
Previous
Next