The examples and documentation are very clear and show how to return one item, but I cannot figure out how to successfully return an array of items.
For example, one of my attributes is an array of values. I want to mutate the source array and return a new array. The groovy compiler keeps telling me that I have syntax errors, but I cannot find any examples of this online - only the reference example of returning one item. Does anyone know of examples? I tried using the arrow function and that too was not recognized.
Reference: