It confused me when i must use return statement in lamda expressions. Is it required or optional? In Study Guide (Jeanne and Scott) said return is required in block. Also they said there is compile error because of return in this code:
But there are some questions in Ethuware about select correct lambda expressions. The correct answers are lambda expressions without return statement. Only with semi-colons like this:
So i dont catch when i must use return in block