Slide 64
Slide 64 text
inline fun Iterable<*>.filterIsInstance(): List
val destination = mutableListOf()
for (element in this) {c
if (element is T) {d
destination.add(element)
}p
}e
return destination
}f
listOf("a", 1, 0x0, 2L, 'u')
.filterIsInstance()