Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gregorydickson
Last active November 15, 2017 19:23
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 gregorydickson/c73c9233ee12b3aeaa89a6967f7bfe30 to your computer and use it in GitHub Desktop.
Save gregorydickson/c73c9233ee12b3aeaa89a6967f7bfe30 to your computer and use it in GitHub Desktop.
def aList = ['1','2','3','4']
def anotherList = [1,2,3,4]
aList.each{ text ->
anotherList.each{number ->
if(number == text.toInteger()) {
println number + " " + text
//break, no, can't do that here
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment