arrow-generic / arrow.generic.coproduct4

Package arrow.generic.coproduct4

Types

Coproduct4 sealed class Coproduct4<A, B, C, D>
Represents a sealed hierarchy of 4 types where only one of the types is actually present.
First data class First<A, B, C, D> : Coproduct4<A, B, C, D>
Represents the first type of a Coproduct4
Fourth data class Fourth<A, B, C, D> : Coproduct4<A, B, C, D>
Represents the fourth type of a Coproduct4
Second data class Second<A, B, C, D> : Coproduct4<A, B, C, D>
Represents the second type of a Coproduct4
Third data class Third<A, B, C, D> : Coproduct4<A, B, C, D>
Represents the third type of a Coproduct4

Functions

cop fun <A, B, C, D> A.~~cop~~(): Coproduct4<A, B, C, D>
fun <A, B, C, D> B.~~cop~~(dummy0: Unit = Unit): Coproduct4<A, B, C, D>
fun <A, B, C, D> C.~~cop~~(dummy0: Unit = Unit, dummy1: Unit = Unit): Coproduct4<A, B, C, D>
fun <A, B, C, D> D.~~cop~~(dummy0: Unit = Unit, dummy1: Unit = Unit, dummy2: Unit = Unit): Coproduct4<A, B, C, D>
coproductOf fun <A, B, C, D> ~~coproductOf~~(a: A): Coproduct4<A, B, C, D>
fun <A, B, C, D> ~~coproductOf~~(b: B, dummy0: Unit = Unit): Coproduct4<A, B, C, D>
fun <A, B, C, D> ~~coproductOf~~(c: C, dummy0: Unit = Unit, dummy1: Unit = Unit): Coproduct4<A, B, C, D>
fun <A, B, C, D> ~~coproductOf~~(d: D, dummy0: Unit = Unit, dummy1: Unit = Unit, dummy2: Unit = Unit): Coproduct4<A, B, C, D>
first fun <A, B, C, D> A.first(): Coproduct4<A, B, C, D>
Creates a Coproduct from the A type
fold fun <A, B, C, D, RESULT> Coproduct4<A, B, C, D>.fold(a: (A) -> RESULT, b: (B) -> RESULT, c: (C) -> RESULT, d: (D) -> RESULT): RESULT
Runs the function related to the actual value of the Coproduct and returns the result
fourth fun <A, B, C, D> D.fourth(): Coproduct4<A, B, C, D>
Creates a Coproduct from the D type
second fun <A, B, C, D> B.second(): Coproduct4<A, B, C, D>
Creates a Coproduct from the B type
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
third fun <A, B, C, D> C.third(): Coproduct4<A, B, C, D>
Creates a Coproduct from the C type