Kotlin collections/streams?


#1

I was trying to do some collection/stream based pagination of a small dataset, but it doesnt look like Kotlin has this?

Streams has something like (forgot the exact):

list.limit(10).skip(20)

which should give me results 30-40 yea? How do I do this with kotlin?


#2

list.drop(20).take(10)


#3

Ohhhhh! Man, haha, I looked through all of the intellisense methods and that one totally did not stick out to me.

Awesome, thanks!!!