Is there something like this in the stdlib? ``` i...
# stdlib
n
Is there something like this in the stdlib?
Copy code
inline fun <T, reified R : T> Collection<T>.filterInstanceOf() = filter { it is R }.map { it as R }