Kotlin - toSet() versus distinct()
In Kotlin, I could obtain the distinct elements of an Iterable<T> using the following two methods... Calling .toSet() val items = listOf(1, 2, 2, 3) val distinctItems: Set<Int> = items....