可以看到这样定义的List,groovy初始化的是ArrayList。 groovy中定义数组: ... list.removeAll { return it % 2 == 0 }. println list - [6, 7].
確定! 回上一頁