v2026.5.3
All Bundles
Bundle Typed tuple classes (Pair, Triple, Quad) for grouping related values without defining a class. Immutable by design; use as map keys or return values. Compile with -lib gen_collect.

Quintet

Quintet class that supports 5 values

quintet := Collection.Tuple.Quintet->New("test", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
quintet->GetFirst()->PrintLine();
quintet->GetSecond()->PrintLine();
quintet->GetFifth()->PrintLine();

Operations

GetFifth #

Returns the fifth value

method : public : GetFifth() ~ E

Return

TypeDescription
Efifth value

Example

q := Collection.Tuple.Quintet->New("x", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
q->GetFifth()->PrintLine(); # true

GetFirst #

Returns the first value

method : public : GetFirst() ~ A

Return

TypeDescription
Afirst value

Example

q := Collection.Tuple.Quintet->New("x", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
q->GetFirst()->PrintLine(); # x

GetFourth #

Returns the fourth value

method : public : GetFourth() ~ D

Return

TypeDescription
Dfourth value

Example

q := Collection.Tuple.Quintet->New("x", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
q->GetFourth()->PrintLine(); # a

GetSecond #

Returns the second value

method : public : GetSecond() ~ B

Return

TypeDescription
Bsecond value

Example

q := Collection.Tuple.Quintet->New("x", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
q->GetSecond()->PrintLine(); # 1

GetThird #

Returns the third value

method : public : GetThird() ~ C

Return

TypeDescription
Cthird value

Example

q := Collection.Tuple.Quintet->New("x", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
q->GetThird()->PrintLine(); # 2.5

New # constructor

Constructor.

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

Parameters

NameTypeDescription
aAfirst parameter
bBsecond parameter
cCthird parameter
dDfourth parameter
eEfifth parameter

Example

q := Collection.Tuple.Quintet->New("x", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
q->GetFirst()->PrintLine();  # x
q->GetFifth()->PrintLine();  # true

ToString #

Formats tuple into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation

Example

q := Collection.Tuple.Quintet->New("x", 1, 2.5, 'a', true)<String, IntRef, FloatRef, CharRef, BoolRef>;
q->ToString()->PrintLine(); # [x,1,2.5,a,true]