Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c89fac33ed
Fetching contributors…

Cannot retrieve contributors at this time

executable file 33 lines (23 sloc) 0.547 kB
#!/usr/bin/env groovy
println("Hello world")
for (a in this.args) {
println("Argument: " + a)
}
mylist = [7, 42, 87, 68, 6]
println "size " + mylist.size()
println mylist[0]
mymap = [mat:"hey", maggick:"magicien", dad:"It s my dad"]
println mymap.dad
println mymap.mat
mymap["mat"]= "hey, it s me !"
println mymap.mat
amPM = Calendar.getInstance().get(Calendar.AM_PM)
if (amPM == Calendar.AM)
{
println("Good morning")
} else {
println("Good evening")
}
square = {it * it}
println square(9)
println ([1, 2, 3, 4, 5].collect(square))
Jump to Line
Something went wrong with that request. Please try again.