(to make your code compile, I had to change to : `...
# arrow
k
(to make your code compile, I had to change to :
Copy code
inline fun <reified A> Option<*>.filterInstance(): Option<A> = flatMap { if (it is A) it.some<A>() else None }
)