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

Or if you want to avoid off-by-one errors, why not have a function:

    dotimes(n, () => button.click())
If anyone is in the habit of solving trivial constant space problems in linear space where n is expected to be over 100000, I don't know what to say to them. Are Javascript implementations pretty much guaranteed to optimise the array away?


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

Search: