Skip to content

Instantly share code, notes, and snippets.

@gregorydickson
Last active November 15, 2017 19:24
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/aceaa8de67ec9f51b9a6d9f7ce73b28b to your computer and use it in GitHub Desktop.
Save gregorydickson/aceaa8de67ec9f51b9a6d9f7ce73b28b 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
return
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment