You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (Jira)" <ji...@apache.org> on 2023/03/27 11:00:00 UTC

[jira] [Closed] (JEXL-365) Lambda expressions

     [ https://issues.apache.org/jira/browse/JEXL-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro closed JEXL-365.
------------------------------

> 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.10#820010)