Groovy web console

subscribe to the feed Subscribe
to this
site

Reverse a list

Published 2 years ago by Valentin
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
x = ['just', 'for', 'fun']
x = x.reverse()

println x