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

I think what you want is a short-circuiting behavior. I don't see a problem with the status quo, if map is able to short-circuit, that means that it runs in order and have side effects. If your "map" can cause the whole function to return, then just write a for-loop. I don't even know if it should return from the whole function or just stop the mapping?


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

Search: