Groovy web console

subscribe to the feed Subscribe
to this
site
map keys (via #groovywebconsole)
tweet this snippet Tweet
this
script

map keys

Published 5 months ago by JK
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def to = "key"
def map = ["key": "value"]
def val = map[to]
println val
println map."${to}"
println map.key
println map.val