namespace Tuple
A readonly array of fixed length and types.
Companion type: Tuple<T>
Functions
append
Returns the given tuple
with the given values
appended.
append
tuple
with the given values
appended.concat
Returns a Tuple containing the elements of given tuple1
followed by the elements of given tuple2
.
concat
tuple1
followed by the elements of given tuple2
.first
Returns the first element of a Tuple.
first
getIndex
Returns the item at the given index
in the givn tuple
.
getIndex
index
in the givn tuple
.init
Returns a Tuple containing all but the last element of the given tuple
.
init
tuple
.last
Returns the last element of a Tuple.
last
of
Convenience method to type Tuple types
of
second
Returns the second element of a Tuple.
second
tail
Returns a Tuple containing all but the first element of the given tuple
.
tail
tuple
.updateAt
Returns a copy of the given tuple
where the element at given index
is updated with the given updater
.
updateAt
tuple
where the element at given index
is updated with the given updater
.