Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pansa2
on Feb 22, 2021
|
parent
|
context
|
favorite
| on:
Go is not an easy language
It’s crazy that the function you call to remove an element from a list is `append`.
pests
on Feb 22, 2021
[–]
If you come at it with the thought that you are creating two sublists (on each side, avoiding the index) you then need to merge them back together. That append reads to just recreate the list from the two parts.
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: