Groovy web console

subscribe to the feed Subscribe
to this
site

Untitled

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
arr = [1,2,3]
myscript = """\
myarray=${arr}
for a in \$myarray; do
  echo \$a
done
"""

print(myscript)