4 ms·
I don't know a single language where the standard map function passes two arguments instead of one. Python has the starmap function as an alternative in case s
by the_mitsuhiko 13y ago
I don't know a single language where the standard map function passes two arguments instead of one. Python has the starmap function as an alternative in case someone really needs that.
- recursive 13y ago.net's .Select() method has both variants.
- actsasbuffoon 13y agoI agree that it's probably a bit unusual, and likely owes to the fact that all JS functions are variadic and ignore arity mismatches. Ruby's procs behave the same way, though its methods and lambdas are more traditional.