looping with index


/ Published in: Groovy
Save to your folder(s)

how to loop an array / collection / list but with index. instead of using each{} closure, you can use eachWithIndex{} closure

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.