Groovy web console

subscribe to the feed Subscribe
to this
site

empty_map

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
// Simple map.
def m = [name: 'mrhaki', language: 'Groovy', existe_vazio: '']

assert !m.get('existe_vazio')
print(m.get('existe_vazio', 'Java'))