What is the result of applying the distinctBy() function in this code?
val names = listOf("Pablo", "John", "Jane", "John", "Jane", "Anne", "Pedro")
println(names.distinctBy { it.last() }) What is the result of applying the distinctBy() function in this code?
val names = listOf("Pablo", "John", "Jane", "John", "Jane", "Anne", "Pedro")
println(names.distinctBy { it.last() }) Create a free account to access the full topic