Henri Biestro created JEXL-365:
----------------------------------
Summary: Lambda expressions
Key: JEXL-365
URL: https://issues.apache.org/jira/browse/JEXL-365
Project: Commons JEXL
Issue Type: Improvement
Affects Versions: 3.2.1
Reporter: Henri Biestro
Assignee: Henri Biestro
Fix For: 3.3
WHAT:
JEXL currently only allow lambda body as being block of potentially multiple
statements. This enhancement will allow lambda body as a single expression
which would make syntax simpler in many cases.
Typical case is predicates or iteration functors.
Example:
{code}
var oddp = x-> (x % 2) == 1;
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)