Groovy web console

subscribe to the feed Subscribe
to this
site

Map index syntax

Published 2 months ago by Andy Duncan with tags collections maps
Actions  ➤ 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