Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複数の値を持つ配列があります。これらの値のいずれかが変更されたかどうかを検出したいのですが、次のようになります。
var array = [ 1, 2, 3, 4 { didSet{ print("Value Changed")}}, 5, 6 ]
どういうわけか、それは可能ですか?
ありがとう