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

The rule of thumb I've read is that map is appropriate and (generally) faster when you do not need to create a lambda.


That's not strictly correct. It really comes down to whether you're calling a native python function or a C extension. If it's a native python function call, it's going to be relatively slow.




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

Search: