Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>How is looping through an array or accessing its last element for a frequent operation?

In languages without foreach or map I'd guess it's one of the most frequent operations. You probably work with the wrong kind of code to appreciate just how awful anything but the [0..n) behaviour is for... I'm sorry, it's so pervasive I can't even come up with a good example. The most trivial thing is offseting an array by an index by addition.



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

Search: