Is there a difference between expression lambda and statement lambda?
If so, what is the difference?
Found this question in the below link but could not understa
Yes there is - or I should probably say that one defines the other.
A lambda expression allows you to assign simple anonymous functions.
An expression lambda is a type of lambda that has an expression to the right of the lambda operator.
The other type of lambda expression is a statement lambda because it contains a statement block {...}
to the right side of the expression.
number => (number % 2 == 0)
number => { return number > 5 }