Groovy web console

subscribe to the feed Subscribe
to this
site

Concurrent mod sample

Published 1 week ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Collection c = ['1']

void doSomethingWithMyC(c) {
  c.add('2')
}

for (Object a in c) {
 doSomethingWithMyC(c)
}