Pair
ts
class Pair<A, B>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.
Properties
first
ts
first: AFirst value.
second
ts
second: BSecond value.
Methods
toList
ts
toList(): [A, B]Converts this pair into a list.
toString
ts
toString(): stringReturns string representation of the Pair including its first and second values.