poppun1940 var a = [11, 22, 33] var b = a a[0] = 777 // b[0]も777になる a.append(44) a[0] = 888 // b[0]は888にならない なぜappendするとArrayの実体が共有されなくなるのか 一見すると奇妙な挙動ですが、SwiftのArrayが構造体(struct)であることから考えれば
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure y...Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
2014/06/22 リンク