Sign in
apache
/
groovy
/
0b4cb8487bd3da9b9af5d15d0c5bc311b618ad96
/
.
/
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}"