Just for curiosity. Discovered Lambdas a few days ago. I was jus wondering if something like that can be done:
(Tried on the interpret but none of my tries seemed to
You can use an inner lambda to return another function, based on the outer parameters:
mul = lambda x: (lambda y: y * x) times4 = mul(4) print times4(2)