【发布时间】:2014-06-08 15:55:34
【问题描述】:
为什么下面的代码有效?试图弄清楚 Swift 如何处理 const。
let list = [1, 2, 3, 4, 5]
list[1] = 0
编辑:这是Is there a reason that Swift array assignment is inconsistent (neither a reference nor a deep copy)? 的副本
我需要在搜索方面做得更好:)
【问题讨论】:
标签: swift