limitTo

fun limitTo(source: List<Any>?, limit: Int?): List<Any>

This function returns a list of resources with a limit of limit resources