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

commonMain.tuples.Tuples.kt Maven / Gradle / Ivy

There is a newer version: 0.4.5-alpha6
Show newest version
package org.openrndr.utils.tuples

data class Quadruple(
    val first: A,
    val second: B,
    val third: C,
    val fourth: D
) {
    override fun toString(): String {
        return "($first, $second, $third, $fourth)"
    }
}

data class Quintuple(
    val first: A,
    val second: B,
    val third: C,
    val fourth: D,
    val fifth: E,
) {
    override fun toString(): String {
        return "($first, $second, $third, $fourth, $fifth)"
    }
}

data class Sextuple(
    val first: A,
    val second: B,
    val third: C,
    val fourth: D,
    val fifth: E,
    val sixth: F,
) {
    override fun toString(): String {
        return "($first, $second, $third, $fourth, $fifth, $sixth)"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy