Lambda Expressions

We can use Lambda expressions to represent our anonymous method.

Mathematicians needed a simple way to represent a computation, functional programmer thought it was a great idea and incorporated the syntax into their languages.

A basic Lambda Expressions shown below.

Take a look at this expression. (x) => x + 2.What does it means?

x goes to x + 2. If x has value 1, it will be 3 after the expression.

results matching ""

    No results matching ""