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

Eric Milles commented on GROOVY-9848:
-------------------------------------

The more interesting usage I found was {{grep}}:
{code:groovy}
def fruitList = ['apple', 'apple', 'pear', 'orange', 'pear', 'lemon', 'banana']
def predicate = [apple:true, banana:true, lemon:false, orange:false, pear:true]
def nonCitrus = fruitList.grep(predicate) // 
['apple','apple','pear','pear','banana']
{code}

> Allow membership operator to work on maps
> -----------------------------------------
>
>                 Key: GROOVY-9848
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9848
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Keegan Witt
>            Assignee: Eric Milles
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to