genzou #6488(2008/06/13 22:12 GMT) [ Groovy ] Rating0/0=0.00
1 2 3 4 5
def list = [3, 1, 4, 1, 5, 9, 2, 6, 5] def result = (1..list.size()-1).collect{ list[it] - list[it-1] } println result
Rating0/0=0.00-0+
[ reply ]
genzou
#6488()
[
Groovy
]
Rating0/0=0.00
def list = [3, 1, 4, 1, 5, 9, 2, 6, 5] def result = (1..list.size()-1).collect{ list[it] - list[it-1] } println resultRating0/0=0.00-0+
[ reply ]