Groovy web console

subscribe to the feed Subscribe
to this
site
Mixed Params (via #groovywebconsole)
tweet this snippet Tweet
this
script

Mixed Params

Published 3 months ago by anony1234
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def say(msg = 'Hello', name = 'world') {
"$msg $name!"
}
 
println say("goodbye", "moon")
println say("goodbye", name: "moon")