kmongo / kotlin.collections / distinctBy

distinctBy

inline fun <T, K> MongoIterable<T>.distinctBy(crossinline selector: (T) -> K): List<T>