tags:

views:

44

answers:

1

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