This function f takes a list of arguments and returns another called with the same list of arguments, so that other functions can be applied to it.
from operator import add, mul def f(*a, **kw): return lambda g: g(*a, **kw) map(f(3, 10), (add, mul))
What do you call f ? Is this some kind of combinator?
source share