Functional Area : Function Variable and Lambda

A function can be taken its reference and have it stored in a variable or class data member or a Java variable (such as a class member or array element).

A function reference is called by the -> ( ) operator if the lefthand-side is a name (variable or class data member); the -> part can be omitted if the left-hand side is an array element operator [> or another function call (which ends with ) ).

Anonymous function can be created via the lambda declaration. A lambda has to be assigned to a variable, or passed to another function as a parameter.

Related Syntax