Closed mu001999 closed 3 years ago
Use @[a, b], c: [1, 2], 3;
instead of @(a, b), c: (1, 2), 3;
to differ from the lambda expression @(...): ...
// correct:
@a, b: 1, 2; // positional
@a, b: [1, 2]; // unpack
@[a, b]: [1, 2]; // unpack
// wrong:
@[a, b]: 1, 2;
Like the followings: