arrow-generic / arrow.generic.coproduct4 / select


fun <A> Coproduct4<A, *, *, *>.select(): Option<A> fun <B> Coproduct4<*, B, *, *>.select(dummy0: Unit = Unit): Option<B> fun <C> Coproduct4<*, *, C, *>.select(dummy0: Unit = Unit, dummy1: Unit = Unit): Option<C> fun <D> Coproduct4<*, *, *, D>.select(dummy0: Unit = Unit, dummy1: Unit = Unit, dummy2: Unit = Unit): Option<D>

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