📅  最后修改于: 2022-03-11 14:55:02.698000             🧑  作者: Mango
def list = [1,2,5,7]
list.each{
println it
}
list.each{val->
println val
}
list.eachWithIndex{it,index->
println "value " + it + " at index " +index
}