Fundamentals

Default Methods

Collections

Idioms and Techniques

Design Rationale

Advanced Questions

Where can lambda expressions be used?

Lambda expressions can be written in any context that has a target type. The contexts that have target types are:

Variable declarations and assignments and array initializers, for which the target type is the type (or the array type) being assigned to; Return statements, for which the target type is the return type of the […]