v2026.2.1
All Bundles

Quartet

Tuple class that supports 4 values

quartet := Collection.Tuple.Quartet->New("Bob", 25, 3.14, true)<String, IntRef, FloatRef, BoolRef>;
quartet->GetFirst()->PrintLine();
quartet->GetSecond()->PrintLine();
quartet->GetThird()->PrintLine();
quartet->GetFourth()->PrintLine();

Operations

GetFirst

Returns the first value

method : public : GetFirst() ~ A

Return

TypeDescription
Afirst value

GetFourth

Returns the fourth value

method : public : GetFourth() ~ D

Return

TypeDescription
Dfourth value

GetSecond

Returns the second value

method : public : GetSecond() ~ B

Return

TypeDescription
Bsecond value

GetThird

Returns the third value

method : public : GetThird() ~ C

Return

TypeDescription
Cthird value

New

Constructor.

New(a:A, b:B, c:C, d:D)

Parameters

NameTypeDescription
aAfirst parameter
bBsecond parameter
cCthird parameter
dDfourth parameter

ToString

Formats tuple into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation