遍歷函數*/ fun forEach() { val arr = intArrayOf(1, 2, 4, 6) arr.forEach(::println) } /** * 對集合每一個元素做變換.
確定! 回上一頁