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/4e258b2e6326b3f69990b832aca44b57 to your computer and use it in GitHub Desktop.
Save gregorydickson/4e258b2e6326b3f69990b832aca44b57 to your computer and use it in GitHub Desktop.
def aList = ['one','two','three','four']
aList.eachWithIndex{ String theString, index ->
println theString
println index
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment