Kotlin collections/streams?

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?

list.drop(20).take(10)

2 Likes

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

Awesome, thanks!!!

1 Like