hasDuplicatesOf

fun <E, T> Iterable<E>.hasDuplicatesOf(selector: (E) -> T): Boolean

Returns true if this collection has duplicate objects produced by the given selector function. false otherwise.