v2026.4.1
All Bundles

Pair

Tuple class that supports 2 values

pair := Collection.Tuple.Pair->New("name", 42)<String, IntRef>;
pair->GetFirst()->PrintLine();
pair->GetSecond()->PrintLine();

Operations

GetFirst

Returns the first value

method : public : GetFirst() ~ A

Return

TypeDescription
Afirst value

GetSecond

Returns the second value

method : public : GetSecond() ~ B

Return

TypeDescription
Bsecond value

New

Constructor.

New(a:A, b:B)

Parameters

NameTypeDescription
aAfirst parameter
bBsecond parameter

ToString

Formats tuple into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation