Find unique items

Report a typo

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.

Write a program in Kotlin
// correct the code below
fun uniqueSelectors(list: List<T>, selector: (T) -> R): List<R> {
// make your code here
}
___

Create a free account to access the full topic