The right result of the function

Report a typo

What is the result of this code?

val listOfNames = listOf("John", "Jane", "Mary", "Peter", "John", "Jane", "Mary", "Peter")
    .asSequence()
    .distinct()
    .map { it.uppercase() }
    .filter { it.startsWith("J") }
    .sorted()
    .toList()

println(listOfNames)
Select one option from the list
___

Create a free account to access the full topic