Print
Lambda Expressions

MVEL allows the definition of lambda functions.

Example

A simple lambda expression

The above example defines a lambda and assigns it to the variable "threshold". Lambda's are essentially functions that are assignable to variables. They are essentially closures and can be used as such.

Powered by Atlassian Confluence