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

Why an expression and not simply `function logArrayElements`? If you do the latter you'll see more information if you wanted to introspect (toString on the function, or in an error traceback).


I adapted this from some game engine code. I have updated my example to show why I wasn't using a `function` statement. Thanks.




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

Search: