//arrow-core/arrow.core/filterIsInstance

filterIsInstance

common inline fun <B> Option<*>.filterIsInstance(): Option<B>

Returns an Option containing all elements that are instances of specified type parameter B.

common inline fun <K, R> Map<K, *>.filterIsInstance(): Map<K, R>

Returns a Map containing all elements that are instances of specified type parameter R.

Do you like Arrow?

Arrow Org
<