3 ms·
It's really only a solution if the calculator usage is on a small number of computers, but you can just import * an override of the map function that behaves ho
by maxerickson 13y ago
It's really only a solution if the calculator usage is on a small number of computers, but you can just import * an override of the map function that behaves however you want.
The override is easy:
pymap=map
def map(...)...
(and maybe for calculator style usage you would name your list returning map and range m and r, which would also help with not confusing them with the usual behavior)
- rectangletangle 13y agoYou don't even have to do the assignment at the begging of your snippet. You could just refer to the builtin module explicitly.