Groovy web console

subscribe to the feed Subscribe
to this
site
Loop example (via #groovywebconsole)
tweet this snippet Tweet
this
script

Loop example

Published 9 months ago by jda
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def coll = ['a','b','c']

for (thing in coll) {
  println "$thing"
}

coll.each {
  println "$it"
}