+ 1
So lambda functions are mostly used for doing simple things (like additions) without having to define a new function "add_numbers"? Also taking into account that i wont repeatedly use the same lambda function.
2 Respuestas
+ 1
I think it is mostly used to define short/simple functions. In combination with variables, you can re-use them. It's for lazy people hahah
- 1
reusing a lambda expression kill the point of using lambda. if you processing is reusable than it must be a function.