[ 
https://issues.apache.org/jira/browse/METRON-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960870#comment-15960870
 ] 

ASF GitHub Bot commented on METRON-831:
---------------------------------------

Github user cestella commented on the issue:

    https://github.com/apache/incubator-metron/pull/517
  
    Ok, I migrated to a more java-ish syntax.  I like it better, it's more 
succinct too, I think.  The following are examples:
    * `MAP( [ 1, 2, 3 ], (x) -> x*2)` would yield `[2, 4, 6]`
    * `MAP( [ 1, 2, 3], x -> x*2)` would yield `[2, 4, 6]`
    * `REDUCE( [1, 2, 3], (sum, x) -> sum + x)` would yield `6`
    * `FILTER( [1, 2, 3], () -> true)` would yield `[1, 2, 3]`


> 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)

Reply via email to