2 ms·
> However, I never knew of "star assignment" eg first, second, *others = some_tuple For what it's worth, I think that's often called "splat".
by JadeNB 5y ago
> However, I never knew of "star assignment" eg
first, second, *others = some_tuple
For what it's worth, I think that's often called "splat".
- delaaxe 5y agoYou can also do: first, second, *_ = some_tuple If you don't care about the others