Created
February 2, 2016 14:44
-
-
Save dnorton/5fbe3f89c32316c8508d to your computer and use it in GitHub Desktop.
Simple test of the contains() method in Groovy
This file contains hidden or 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
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