Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_1_BETA_3
/
.
/
groovy-core
/
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}"