Groovy web console

subscribe to the feed Subscribe
to this
site

Test

Published 1 month ago by Erw
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
Map a = [b:1, c:2]

a - [b:1]

println("Sin asignar: ${a}")

a = a - [b:1]

println("Asignado: ${a}")

Map b = [a:1, b:2]

b.remove("b")

println("Con remove: ${b}")