Tuple2

data class Tuple2<Super, T1 : Super, T2 : Super> : Tuple<Super> , AllOf2<T1, T2> (source)

Tuple carrying elements item1 and item2.

Parameters

Super

common super type for all tuple elements.

T1

type of the first element.

T2

type of the second element.

Properties

Link copied to clipboard
open override val item1: T1

the first element.

Link copied to clipboard
open override val item2: T2

the second element.

Functions

Link copied to clipboard
operator fun <Super, T1 : Super, T2 : Super, T3 : Super> Tuple2<*, T1, T2>.plus(item3: T3): Tuple3<Super, T1, T2, T3>

Appends item3 to this tuple.

Link copied to clipboard
open override fun toList(): List<Super>

Constructs a list of all the items in this.