Groovy 提供各种集合类型,包括lists, maps, ranges。 ... def list = [1,2,3,4,5,6,2,2,1] assert list.remove(2) == 3 // remove the third element, and return ...
確定! 回上一頁