Lambdas

Create anonymous methods using a more concise syntax.

Overview

Lambdas are a simpler way to declare anonymous methods, though the syntax might look a bit tricky at first.

Let’s look at an example. We’ll rewrite the code from the previous lesson:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy