Quad

data class Quad<out A, out B, out C, out D>(val first: A, val second: B, val third: C, val fourth: D)

A quad of values.

There is no meaning attached to values in this class, it can be used for any purpose. Quad exhibits value semantics, i.e. two quads are equal if all components are equal.

Since

1.2.0

See also

Constructors

Link copied to clipboard
constructor(first: A, second: B, third: C, fourth: D)

Properties

Link copied to clipboard
val first: A
Link copied to clipboard
val fourth: D
Link copied to clipboard
val second: B
Link copied to clipboard
val third: C

Functions

Link copied to clipboard
fun <T> Quad<T, T, T, T>.toList(): List<T>

Turns this quad into a List.

Link copied to clipboard
open override fun toString(): String

Returns string representation of the Quad including its values.