Groovy web console

subscribe to the feed Subscribe
to this
site

sum n..m

Published 2 months ago by jorge with tags list basic
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
list =[1,2,3,4,5,6,7]
println list[2..3]
println list[2..3].sum()