A lambda expression is an anonymous function that can accept input parameters and return a value. A lambda expression can specify the types of all (or none) of its input parameters; lambda expressions can be explicitly-typed or implicitly-typed.
Lambda expressions
Explicitly-typed lambda expressions
A lambda expression that explicitly specifies the type of all of its input parameters is referred to as an explicitly-typed lambda expression. The following code illustrates a few examples (with the input parameters in bold):
(Integer age) -> age > 10; // input Integer,
// return Boolean (Integer age) -> age > 10? "Kid" : "Not a Kid...