kmongo / kotlin.collections / com.mongodb.client.MongoIterable / elementAtOrNull

elementAtOrNull

fun <T> MongoIterable<T>.elementAtOrNull(index: Int): T? (source)

Returns an element at the given index or null if the index is out of bounds of this collection.