Hacker News new | past | comments | ask | show | jobs | submit login

Indeed, that's why one of the go versions (I don't remember which) added the capacity as the third argument when "slicing."

https://play.golang.org/p/FCm8nOElz2n




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: