Initialization
const a = new Tuple([1, 2]);
Initialization Sugar
const a = #[1, 2];
Extension
const b = a.concat(#[3, 4]);
Extension Sugar
const b = #[...a, 3, 4];
Type
typeof #[]; // 'tuple'
TupleLiteral:
#
[
(TupleElement (,
TupleElement)*)?]
TupleElement:
- AssignmentExpression
...
AssignmentExpression
== and === test value equality.
<, >= etc. test value order/equality in enumeration order.
Enumeration always proceeds in numeric index order.
.length
cannot be greater than 2^32 - 1