arrow-generic / arrow.generic.coproduct6 / First

First

data class First<A, B, C, D, E, F> : Coproduct6<A, B, C, D, E, F>

Represents the first type of a Coproduct6

Constructors

<init> First(a: A)
Represents the first type of a Coproduct6

Properties

a val a: A

Extension Functions

fold fun <A, B, C, D, E, F, RESULT> Coproduct6<A, B, C, D, E, F>.fold(a: (A) -> RESULT, b: (B) -> RESULT, c: (C) -> RESULT, d: (D) -> RESULT, e: (E) -> RESULT, f: (F) -> RESULT): RESULT
Runs the function related to the actual value of the Coproduct and returns the result
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