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

I don't assume it's implemented like "next = array[2...]". I don't even know what that means.



Sorry, I assumed that most people could understand the pseudocode syntax for a subarray operation. In Javascript, this is:

array.slice(2)


I understood it, without even thinking about it. In my opinion it's more elegant than the real syntax, and I didn't even realize it wasn't real JavaScript until this comment thread made me look again.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: