I am new to Groovy and, despite reading many articles and questions about this, I am still not clear of what is going on. From what I understood so far, when you create a new ar
The Groovy way to do this is
def list = [] list << new MyType(...)
which creates a list and uses the overloaded leftShift operator to append an item
See the Groovy docs on Lists for lots of examples.