O'Reilly logo

Functional C# by Wisnu Anggoro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required