val m = mutableMapOf() val numbers = arrayOf(1, 2, 3, 4, 5) // 将数字与其平方关联起来, {1=1, 2=4, 3=9, 4=16, 5=25} numbers.associateTo(m) { it to it * it }.forEach { _console.log(it) }