[
https://issues.apache.org/jira/browse/METRON-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960805#comment-15960805
]
ASF GitHub Bot commented on METRON-831:
---------------------------------------
Github user cestella commented on the issue:
https://github.com/apache/incubator-metron/pull/517
So, the syntax chosen here for lambda expressions is `&(var_0, var_1, ...,
var_n : expr)`. This seemed like the simplest option to me, but it's possible
that we should mimic existing systems such as:
* Pythonish: `lambda var_0, var1, ..., var_n : expr`
* Javaish: `(var_0, var_1, ..., var_n) -> expr `
* Scalaish: `(var_0, var_1, .., var_n) => expr`
Is there any feedback on the syntax? Would you like to see something
different?
> Add lambda expressions and rudimentary functional programming primitives to
> Stellar
> -----------------------------------------------------------------------------------
>
> Key: METRON-831
> URL: https://issues.apache.org/jira/browse/METRON-831
> Project: Metron
> Issue Type: Improvement
> Reporter: Casey Stella
>
> To enable use-cases where the user may want to do simple iteration, we can
> expose simple functional primitives such as:
> * MAP
> * REDUCE
> * FILTER
> To fully support this, we will need lambda expressions as arguments to these
> functions.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)