Y
Hacker News
new
|
ask
|
show
|
jobs
by
SuchAnonMuchWow
1931 days ago
It doesn't start from 0: there was some pattern matching before:
(a, b, c, d) = range(4)
2 comments
ksm1717
1931 days ago
Now we can do
(a, b, c, d, e, f, g, h) = range(8)
link
bmn__
1931 days ago
This is destructuring.
link
seertaak
1931 days ago
...which is a simple form of pattern matching.
link
(a, b, c, d, e, f, g, h) = range(8)