Skip to content

Instantly share code, notes, and snippets.

@diegodfsd
Created June 1, 2011 01:40
Show Gist options
  • Save diegodfsd/1001633 to your computer and use it in GitHub Desktop.
Save diegodfsd/1001633 to your computer and use it in GitHub Desktop.
lista = ["primeiro", "segundo", "terceiro", 4]
println lista.size
lista += "quinto"
println lista.size
lista -= 4
println lista.size
mapa = ["a" : 1, "b" : 2]
mapa.each{ k,v -> println k + ' ' + v }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment