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 […]