Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
klodolph
on March 18, 2023
|
parent
|
context
|
favorite
| on:
a[low:high:max] in Golang – A Rare Slice Trick
Regarding conflicting ranges—
In a[i:j:k], 0 <= i, i <= j, j <= k, and k <= cap(a). If not, then the operation will panic.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
In a[i:j:k], 0 <= i, i <= j, j <= k, and k <= cap(a). If not, then the operation will panic.