val numbers = arrayOf(1, 2, 3, 4, 5) // 将每个元素乘以 2, 翻倍后的数字: [2, 4, 6, 8, 10] numbers.map { it * 2 }.forEach { _console.log(it) }