grails - How to check if element in groovy array/hash/collection/list? - Stack Overflow
4 down vote[1,2,3].contains(1) == truelink|edit|flaganswered Sep 9 '08 at 13:58banderson623153 1 1 9 add comment up vote 23 down voteSome syntax sugar1 in [1,2,3] == true
[1,2,3].contains(1) == true
add comment
Some syntax sugar
1 in [1,2,3] == true