Comment on Python does support if-else in lambdas...parentComments−globalrevOP17yThe formatting got messed up but yes I agree. They were just examples, not the best ones perhaps.I have felt a need for it sometimes though. Very complicated lambdas are perhaps generally better off as normal functions.But I hate creating one-time-use functions if it isn't necessary.
Comments
The formatting got messed up but yes I agree. They were just examples, not the best ones perhaps.
I have felt a need for it sometimes though. Very complicated lambdas are perhaps generally better off as normal functions.
But I hate creating one-time-use functions if it isn't necessary.