Groovy web console

subscribe to the feed Subscribe
to this
site

by reference

Published 3 weeks ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def append(def inList) {
    inList.add("appendedValue")
}

def list = ["originalValue"]
append(list)
print(list)