How can I use Groovy to add an item to the beginning of a list?
+2
A:
list.add(0,myObject);
You can also read this for some other valuable examples: http://groovy.codehaus.org/JN1015-Collections
Max
2010-06-15 06:18:14