What does [:] mean in groovy? July 25, 2023 by Tarik [:] is shorthand notation for creating a Map. You can also add keys and values to it: def foo = [bar: 'baz']