limit

open fun limit(count: Int): SizedIterable<T>

Returns a new SizedIterable containing only count elements.


abstract fun limit(n: Int, offset: Long): SizedIterable<T>

Deprecated

This function will be removed in future releases.

Replace with

limit(n).offset(offset)