Tuple

class Tuple<T1, T2>

Auxiliary generic class to represent a pair of related, heterogeneous elements. It is immutable.

This class provides properties v1 and v2, along with overloaded operators component1 and component2 to enable destructuring declarations (e.g., val (position, move) = tuple).

Since

1.0.0-beta.1

Author

lunalobos

Properties

Link copied to clipboard
val v1: T1

The first element of the tuple.

Link copied to clipboard
val v2: T2

The second element of the tuple.

Functions

Link copied to clipboard
operator fun component1(): T1
Link copied to clipboard
operator fun component2(): T2
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int