
commonMain.arrow.core.Pair.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arrow-core Show documentation
Show all versions of arrow-core Show documentation
Functional companion to Kotlin's Standard Library
@file:JvmMultifileClass
@file:JvmName("TupleNKt")
package arrow.core
import kotlin.jvm.JvmMultifileClass
import kotlin.jvm.JvmName
public operator fun , B : Comparable> Pair.compareTo(other: Pair): Int {
val first = first.compareTo(other.first)
return if (first == 0) second.compareTo(other.second)
else first
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy