Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hamdouni
on March 19, 2023
|
parent
|
context
|
favorite
| on:
a[low:high:max] in Golang – A Rare Slice Trick
Oh, I rather use this version :
package main func main() { a := [2]int{1, 2} b := a[0:1:1] c := b[0:2] println(b[0], c[1]) }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: