metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cestella <...@git.apache.org>
Subject [GitHub] incubator-metron issue #517: METRON-831: Add lambda expressions and rudiment...
Date Fri, 07 Apr 2017 14:21:50 GMT
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]`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message