Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta-1
-
None
-
None
-
Mozilla Firebird
Description
Looking at the following Quickstart example there appears to be an error:
groovy> closure = { param | println("hello ${param}") }
groovy> closure.call("world!")
hello world!
groovy> closure =
groovy> closure.call("hello ", "world!")
hello world!
This line:
groovy> closure = { greeting, name | println(greeting + param) }
Should read:
groovy> closure =