Last active
January 4, 2016 08:18
-
-
Save mgdelacroix/8593983 to your computer and use it in GitHub Desktop.
Groovy: value not in list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Boolean not(Boolean val) { | |
return !val | |
} | |
def value = 7 | |
def valueList = [1, 2, 3] | |
// not value in valueList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works in 2.2.1 :)