The right result of distinct

Report a typo

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() }) 
Select one option from the list
___

Create a free account to access the full topic