3 ms·
I completely agree with you. I only used map as he pointed out in the examples how "easy" it was to call it dynamically.
by jmagnusson 14y ago
I completely agree with you. I only used map as he pointed out in the examples how "easy" it was to call it dynamically.
- masklinn 14y agoAn other option if you use map is `operator.methodcaller`, which is also slightly closer in semantics to underscore's invoke (function name specified by string, ability to specify argument to apply to the method, duck-typed).