All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.arrow.core.Triple.kt Maven / Gradle / Ivy

The newest version!
@file:JvmMultifileClass
@file:JvmName("TupleNKt")

package arrow.core

import kotlin.jvm.JvmMultifileClass
import kotlin.jvm.JvmName

public operator fun , B : Comparable, C : Comparable> Triple.compareTo(other: Triple): Int {
  val first = first.compareTo(other.first)
  return if (first == 0) {
    val second = second.compareTo(other.second)
    if (second == 0) third.compareTo(other.third)
    else second
  } else first
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy