Groovy web console

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

test

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
arg1 = 6

def fact
fact = { n ->
    (n == 0 ? 1 : n * fact(n-1))
}

fact(arg1)