can anybody explain me lambda easily? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can anybody explain me lambda easily?

9th Sep 2020, 7:16 AM
Shaurya Rustagi
Shaurya Rustagi - avatar
4 Answers
+ 2
ooh yeah java also use term lambda but not only limited to single expression it can also be anonymous function. i guess my original answer is only half correct
9th Sep 2020, 7:42 AM
Rei
Rei - avatar
+ 7
It's also known as anonymous functions that are often passed in as parameters to other functions. In such cases, the other function will call the lambda to execute some additional logic. There are so many patterns, use cases, and applications for this across different languages and programming paradigms.
9th Sep 2020, 7:31 AM
David Carroll
David Carroll - avatar
+ 2
its one liner function with one expression or maybe a callable expression
9th Sep 2020, 7:26 AM
Rei
Rei - avatar
+ 1
Thank you David Carroll and Rei you both really helped
18th Sep 2020, 6:32 AM
Shaurya Rustagi
Shaurya Rustagi - avatar