arrow-generic / arrow.generic.coproduct6 / select

select

fun <A> Coproduct6<A, *, *, *, *, *>.select(): Option<A> fun <B> Coproduct6<*, B, *, *, *, *>.select(dummy0: Unit = Unit): Option<B> fun <C> Coproduct6<*, *, C, *, *, *>.select(dummy0: Unit = Unit, dummy1: Unit = Unit): Option<C> fun <D> Coproduct6<*, *, *, D, *, *>.select(dummy0: Unit = Unit, dummy1: Unit = Unit, dummy2: Unit = Unit): Option<D> fun <E> Coproduct6<*, *, *, *, E, *>.select(dummy0: Unit = Unit, dummy1: Unit = Unit, dummy2: Unit = Unit, dummy3: Unit = Unit): Option<E> fun <F> Coproduct6<*, *, *, *, *, F>.select(dummy0: Unit = Unit, dummy1: Unit = Unit, dummy2: Unit = Unit, dummy3: Unit = Unit, dummy4: Unit = Unit): Option<F>

Transforms the Coproduct into an Option based on the actual value of the Coproduct

Return None if the Coproduct was not the specified type, Some if it was the specified type