Let's say I have an input variable:
var = 10
and I have a list of functions:
functions = [
lambda x: x + 1,
lambda x: x + 10,
lambda x: x + 42
]
Is there an elegant way to map the functions over the variable to get a list output?
# elegant one-liner here
11
20
52
P.S. not [f(var) for f in functions], please, something with map.