Write a function that accepts a list of objects and a selector function that selects the value of an object. The function must return a list of unique selections.
Inline functions and reified types in Kotlin
Find unique items
Report a typo
Write a program in Kotlin
// correct the code below
fun uniqueSelectors(list: List<T>, selector: (T) -> R): List<R> {
// make your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.