kmongo / kotlin.collections / toSet

toSet

fun <T> MongoIterable<T>.toSet(): Set<T>