arrow-core / arrow.core.extensions / OptionSelective / select
open fun <A, B> OptionOf<Either<A, B>>.select(f: OptionOf<(A) -> B>): Option<B>
Do you like Arrow?