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
GetSecond
Returns the second value
method : public : GetSecond() ~ BReturn
| Type | Description |
|---|---|
| B | second value |
New
Constructor.
New(a:A, b:B, c:C)Parameters
| Name | Type | Description |
|---|---|---|
| a | A | first parameter |
| b | B | second parameter |
| c | C | third parameter |
ToString
Formats tuple into a string
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation |