groovycode.com

Reverse a list

Reverse a list in groovy

1 def list = [1, 2, 3]
2 println list.reverse()

[3, 2, 1]