2 ms·
Single expression lambdas. Lambdas can span multiple lines but they specifically contain a single expression, no statements. And since Python isn't really an ex
by Jtsummers 4y ago
Single expression lambdas. Lambdas can span multiple lines but they specifically contain a single expression, no statements. And since Python isn't really an expression oriented language this is still pretty constraining.