
commonMain.arrow.core.Tuple6.kt Maven / Gradle / Ivy
@file:JvmMultifileClass
@file:JvmName("TupleNKt")
package arrow.core
import kotlin.jvm.JvmMultifileClass
import kotlin.jvm.JvmName
public data class Tuple6(
val first: A,
val second: B,
val third: C,
val fourth: D,
val fifth: E,
val sixth: F
) {
override fun toString(): String =
"($first, $second, $third, $fourth, $fifth, $sixth)"
public companion object
}
public operator fun , B : Comparable, C : Comparable, D : Comparable, E : Comparable, F : Comparable>
Tuple6.compareTo(other: Tuple6): Int {
val first = first.compareTo(other.first)
return if (first == 0) {
val second = second.compareTo(other.second)
if (second == 0) {
val third = third.compareTo(other.third)
if (third == 0) {
val fourth = fourth.compareTo(other.fourth)
if (fourth == 0) {
val fifth = fifth.compareTo(other.fifth)
if (fifth == 0) sixth.compareTo(other.sixth)
else fifth
} else fourth
} else third
} else second
} else first
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy