groostav
03/19/2018, 10:13 PMpublic infix fun <T> Iterable<T>.intersect(other: Iterable<T>): Set<T> {
val set = this.toMutableSet()
set.retainAll(other)
return set
}
public fun <T, C> Iterable<T>.intersect(other: Iterable<T>, comparator: (T, T) -> Boolean) { //...
ilya.gorbunov
03/20/2018, 7:06 PMgroostav
03/20/2018, 11:19 PM