v2026.2.1
All Bundles

Triplet

Tuple class that supports 3 values

triplet := Collection.Tuple.Triplet->New("Alice", 30, true)<String, IntRef, BoolRef>;
triplet->GetFirst()->PrintLine();
triplet->GetSecond()->PrintLine();
triplet->GetThird()->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

GetThird

Returns the third value

method : public : GetThird() ~ C

Return

TypeDescription
Cthird value

New

Constructor.

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

Parameters

NameTypeDescription
aAfirst parameter
bBsecond parameter
cCthird parameter

ToString

Formats tuple into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation