One very big benefit of lambdas is that you can declare functions as variables, function parameters, and even function return types. Very useful when embracing functional programming which focuses more on functions than objects from object oriented programming. In fact, it helps you create more generic, more testable code. But that's a more advanced topic.
One very big benefit of lambdas is that you can declare functions as variables, function parameters, and even function return types. Very useful when embracing functional programming which focuses more on functions than objects from object oriented programming. In fact, it helps you create more generic, more testable code. But that's a more advanced topic.