[
https://issues.apache.org/jira/browse/JEXL-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Biestro resolved JEXL-365.
--------------------------------
Resolution: Fixed
Commit
[e2c841|https://github.com/apache/commons-jexl/commit/e2c841fe2dfc39139f06d42455e34a9e201dfb6a]
> 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
> Priority: Major
> 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)