Skip to content

Instantly share code, notes, and snippets.

@mgdelacroix
Last active January 4, 2016 08:18
Show Gist options
  • Save mgdelacroix/8593983 to your computer and use it in GitHub Desktop.
Save mgdelacroix/8593983 to your computer and use it in GitHub Desktop.
Groovy: value not in list
Boolean not(Boolean val) {
return !val
}
def value = 7
def valueList = [1, 2, 3]
// not value in valueList
@mariogarcia
Copy link

Works in 2.2.1 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment