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

Well, if you need multiple lines, you probably don't need your function to be anonymous. (Your example is just `sum`...)



I've needed it many times in the past where the function I'm assigning can't be done as a one-liner like that.




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

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

Search: