The advantages of using lambda expression in functional programming

Lambda expressions are not only a powerful way to provide a shorthand notation for anonymous methods, but they are also used in functional programming. In this section, we will go through the advantages of using the lambda expression in the context of functional programming.

First-class functions

In Chapter 1, Tasting Functional Style in C#, we discussed the idea of first-class functions when we were discussing functional programming. If functions are fire class Functions, functions obey value semantics. They can be passed as a parameter, returned from a function, and so on. If we go back to the earlier topic about lambda expressions, we have a project named SimpleLambdaExpression.csproj ...

Get Functional C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.