kmongo / kotlin.collections / elementAtOrElse

elementAtOrElse

fun <T> MongoIterable<T>.elementAtOrElse(index: Int, defaultValue: (Int) -> T): T