https://kotlinlang.org logo
#announcements
Title
# announcements
e

ean5533

03/22/2017, 3:17 PM
I'm pretty sure this is the 3rd or 4th time I've forgotten the correct name for that method
m

mg6maciej

03/22/2017, 3:59 PM
I suggest
inline fun <reified T> Iterable<*>.ofType() = filterIsInstance<T>()
😉