[
https://issues.apache.org/jira/browse/GROOVY-9848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246632#comment-17246632
]
Eric Milles commented on GROOVY-9848:
-------------------------------------
I am thinking that "in" may be wired this way to support maps with default
value generation like this:
{code:groovy}
def map = [:].withDefault { 42 }
assert 'key' !in map.keySet()
assert 'key' in map
assert 'key' in map.keySet()
{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
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)