View on GitHub

SpheroidScript

//Spheroid Script/spheroid/Pair

Pair

Represents a generic pair of two values.There is no meaning attached to values in this class, it can be used for any purpose. Pair exhibits value semantics, i.e. two pairs are equal if both components are equal.

class Pair<A : Any?, B : Any?> (first: A, second: B)

Constructors

Name Summary
<init> Creates a new instance of Pair.
fun <A : Any?, B : Any?> <init>(first: A, second: B)

Functions

Name Summary
toString fun toString(): String

Properties

Name Summary
first First value.
val first: A
second Second value.
val second: B