Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
adammarples
· 2y ago · 0 comments
Do tuple unpacking like this
result, _* = iterable()
Comments
[–]
plyp
2y ago
That’s not the same though. Your unpacking allows for any non-empty iterable while OPs only allows for an iterable with exactly one item or else it throws an exception.