0

Why to use lambda instead of defining a function?

18th Sep 2020, 1:25 PM
Rohit Dhas
Rohit Dhas - avatar
3 Réponses
+ 5
Rohit Dhas It is easier,simple and shorter which will make a code more fluent Hope this will help✌️
18th Sep 2020, 1:39 PM
Piyush
Piyush - avatar
+ 4
When reusability is low, or when you know the function is only needed and used in a certain scope (like inside a function), but nowhere else.
18th Sep 2020, 1:36 PM
Ipang
+ 3
It is shorter.
18th Sep 2020, 1:31 PM
Ore
Ore - avatar