Groovy web console

subscribe to the feed Subscribe
to this
site

Map index syntax

Published 2 years ago by Andy Duncan with tags collections maps
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def m = [:]
def k = 'key'
def v = 'value'
m[k] = v

println m