Filter with inline functions

Report a typo

Write a function filterByType using inline functions and reified type parameters, which takes a list of objects and an object type and then returns a new list containing only the objects of that type.

Write a program in Kotlin
/*?*/ filterByType(list: List<Any>): List<T> {
// make your code here
}
___

Create a free account to access the full topic