Almost. Just enclose the range in parens and don't use String interpolation syntax: def r = (value1..value2) assert r == [30, 31, 32, 33, ...
確定! 回上一頁