Groovy web console

subscribe to the feed Subscribe
to this
site
do returns do anything in an each (via #groovywebconsole)
tweet this snippet Tweet
this
script

do returns do anything in an each

Published 4 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def foo = [1,2,3,4,5]
foo.each {
    println it
    if (it == 2) {
        return
    }
}