Groovy web console

subscribe to the feed Subscribe
to this
site
named params? (via #groovywebconsole)
tweet this snippet Tweet
this
script

named params?

Published 7 months ago by charlie
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def test(String foo, String bar='cheese', String baz='burger') {
    return "${foo} would like a ${bar} ${baz}"
}

test("I", baz="dog")