Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e5b3f0421a
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.396 kb
class Simple {
doSomething() {
data = ["name": "James", "location": "London"]
for (e in data) {
println("entry ${e.key} is ${e.value}")
}
}
closureExample(collection) {
collection.each { println("value ${it}") }
}
static void main(args) {
values = [1, 2, 3, "abc", "moo"]
foo = new Simple()
foo.closureExample(values)
foo.doSomething()
}
}
Jump to Line
Something went wrong with that request. Please try again.