3 ms·
True, but you're missing the point.
by biorach 3y ago
True, but you're missing the point.
- PurpleRamen 3y agoThen what is the point?
- phailhaus 3y agoReadability. If you're using the same name everywhere, then your code is really hard to understand for other devs: val = my_list.reduce(foobar) What is even going on here?
- cmcconomy 3y agoone option is to define your function inline, directly above the line where you would have liked to write the complex anonymous function. I guess if you are worried about namespace pollution you can 'del' the symbol afterward.