3 ms·
The problem here is not with parseInt but with map. Map is such a basic function and should have been defined more simply. By all means, make an extended mapE
by philsnow 3y ago
The problem here is not with parseInt but with map. Map is such a basic function and should have been defined more simply.
By all means, make an extended mapE function that passes all kinds of things like position in the input iterable, a reference to the iterable, a reference to an at-first empty “memo” object that will be discarded at the end of the map call, etc etc.