Skip to content

Instantly share code, notes, and snippets.

@dnorton
Created February 2, 2016 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnorton/5fbe3f89c32316c8508d to your computer and use it in GitHub Desktop.
Save dnorton/5fbe3f89c32316c8508d to your computer and use it in GitHub Desktop.
Simple test of the contains() method in Groovy
def list = ["server1", "server2", "server3"]
println list.contains("server1")
println list.contains("server4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment