2 ms·
Yes, that it is pretty much already part of the language like this. This works: a, *b = (1, 2, 3, 4) b will be [2, 3, 4]
by maxnoe 6y ago
Yes, that it is pretty much already part of the language like this.
This works:
a, *b = (1, 2, 3, 4)
b will be [2, 3, 4]
- just-ok 6y agoNot only that, but this also works! a, *b, c = (1, 2, 3, 4) a == 1, b == [2, 3], c == 4