distinctByLaw

inline fun <T, K> Collection<T>.distinctByLaw(selector: (T) -> K): List<T>