Sign in
apache
/
groovy
/
4ce380cda5b437999726dfd041cb1b0781e91ec9
/
.
/
groovy
/
modules
/
classic
/
src
/
test
/
groovy
/
script
/
ScriptWithFunctions.groovy
blob: bb04b78cc35745fb29b3cb51f5f0562e92633666 [
file
] [
log
] [
blame
]
def
foo
(
list
,
value
)
{
println
"Calling function foo() with param ${value}"
list
<<
value
}
x
=
[]
foo
(
x
,
1
)
foo
(
x
,
2
)
assert
x
==
[
1
,
2
]
println
"Creating list ${x}"