Tuple
- Type parameters:
Rest
A fixed group of typed values, such as Tuple<String, Int>.
Construct one with Tuple.of("name", 42) or new Tuple<String, Int>("name", 42). pair[index] reads or writes a position as Dynamic, with bounds checked at runtime. pair.at(1) and pair.set(1, value) use a literal position and keep its static type. The typed _0, _1, ... fields are also available. copy makes a shallow copy and toArray returns a separate Array<Dynamic> for inspecting mixed values.
Record literals with the numbered fields are also accepted. A tuple has at least one position, and its length is fixed.