Tuple4

data class Tuple4<A1, A2, A3, A4>(val a1: A1, val a2: A2, val a3: A3, val a4: A4)

Represents a simple data structure to hold 4 values.

Since

2.0.0

Constructors

Link copied to clipboard
constructor(a1: A1, a2: A2, a3: A3, a4: A4)

Properties

Link copied to clipboard
val a1: A1
Link copied to clipboard
val a2: A2
Link copied to clipboard
val a3: A3
Link copied to clipboard
val a4: A4

Functions

Link copied to clipboard
fun <A1, A2, A3, A4, A5> Tuple4<A1, A2, A3, A4>.append(a5: A5): Tuple5<A1, A2, A3, A4, A5>

Transforms this Tuple4 into a Tuple5 by appending the given arguments.

fun <A1, A2, A3, A4, A5, A6> Tuple4<A1, A2, A3, A4>.append(a5: A5, a6: A6): Tuple6<A1, A2, A3, A4, A5, A6>

Transforms this Tuple4 into a Tuple6 by appending the given arguments.

fun <A1, A2, A3, A4, A5, A6, A7> Tuple4<A1, A2, A3, A4>.append(a5: A5, a6: A6, a7: A7): Tuple7<A1, A2, A3, A4, A5, A6, A7>

Transforms this Tuple4 into a Tuple7 by appending the given arguments.

fun <A1, A2, A3, A4, A5, A6, A7, A8> Tuple4<A1, A2, A3, A4>.append(a5: A5, a6: A6, a7: A7, a8: A8): Tuple8<A1, A2, A3, A4, A5, A6, A7, A8>

Transforms this Tuple4 into a Tuple8 by appending the given arguments.

fun <A1, A2, A3, A4, A5, A6, A7, A8, A9> Tuple4<A1, A2, A3, A4>.append(a5: A5, a6: A6, a7: A7, a8: A8, a9: A9): Tuple9<A1, A2, A3, A4, A5, A6, A7, A8, A9>

Transforms this Tuple4 into a Tuple9 by appending the given arguments.

Link copied to clipboard
fun <A1, A2, A3, A4, A5, A6, A7, A8> Tuple4<A1, A2, A3, A4>.glue(tuple4: Tuple4<A5, A6, A7, A8>): Tuple8<A1, A2, A3, A4, A5, A6, A7, A8>

Glues the given tuple4 to this Tuple4 and thus results in a Tuple8.

fun <A1, A2, A3, A4, A5, A6, A7, A8, A9> Tuple4<A1, A2, A3, A4>.glue(tuple5: Tuple5<A5, A6, A7, A8, A9>): Tuple9<A1, A2, A3, A4, A5, A6, A7, A8, A9>

Glues the given tuple5 to this Tuple4 and thus results in a Tuple9.

fun <A1, A2, A3, A4, A5, A6> Tuple4<A1, A2, A3, A4>.glue(pair: Pair<A5, A6>): Tuple6<A1, A2, A3, A4, A5, A6>

Glues the given pair to this Tuple4 and thus results in a Tuple6.

fun <A1, A2, A3, A4, A5, A6, A7> Tuple4<A1, A2, A3, A4>.glue(triple: Triple<A5, A6, A7>): Tuple7<A1, A2, A3, A4, A5, A6, A7>

Glues the given triple to this Tuple4 and thus results in a Tuple7.

Link copied to clipboard
fun <A1, A2, A3, A4, A1New> Tuple4<A1, A2, A3, A4>.mapA1(transform: (A1) -> A1New): Tuple4<A1New, A2, A3, A4>

Maps Tuple4.a1 with the given transform function and returns a new Tuple4.

Link copied to clipboard
fun <A1, A2, A3, A4, A2New> Tuple4<A1, A2, A3, A4>.mapA2(transform: (A2) -> A2New): Tuple4<A1, A2New, A3, A4>

Maps Tuple4.a2 with the given transform function and returns a new Tuple4.

Link copied to clipboard
fun <A1, A2, A3, A4, A3New> Tuple4<A1, A2, A3, A4>.mapA3(transform: (A3) -> A3New): Tuple4<A1, A2, A3New, A4>

Maps Tuple4.a3 with the given transform function and returns a new Tuple4.

Link copied to clipboard
fun <A1, A2, A3, A4, A4New> Tuple4<A1, A2, A3, A4>.mapA4(transform: (A4) -> A4New): Tuple4<A1, A2, A3, A4New>

Maps Tuple4.a4 with the given transform function and returns a new Tuple4.