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 pull request #517: METRON-831: Add lambda expressions and r...
Date Sat, 08 Apr 2017 17:12:36 GMT
Github user cestella commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/517#discussion_r110522921
  
    --- Diff: metron-platform/metron-common/README.md ---
    @@ -466,6 +512,14 @@ The `!=` operator is the negation of the above.
         * IANA Number
       * Returns: The protocol name associated with the IANA number.
     
    +### `REDUCE`
    +  * Description: Reduces a list by a binary lambda expression. That is, the expression
takes two arguments.  Usage example: `REDUCE( [ 1, 2, 3 ] , (x, y) -> x + y)` would sum
the input list, yielding `6`.
    +  * Input:                      
    +    * list - List of arguments.
    +    * binary_operation - The lambda expression function to apply to reduce the list.
It is assumed that this takes two arguments, the first being the running total and the second
being an item from the list.
    +    * initial_value - The initial value to use.
    --- End diff --
    
    Yep, agreed


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