像下面的做法,很特別,之前有在Array 提過一樣的用法, it 會是index,但這邊的結果會產生一個大小是5 的list [a, b, c, d, e] val its = List(5) { // it is index ...
確定! 回上一頁