Groovy web console

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

Inver Map

Published 10 months ago by Bernue
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Map m = [a: 1, b: 1] 
Map mInvert = m.collectEntries { e -> [(e.value): e.key] }