While reading some groovy code of another developer I encountered the following definition:
def foo=[:]
What does it mean?
[:] is shorthand notation for creating a Map.
[:]
You can also add keys and values to it:
def foo = [bar: 'baz']