Avatar
@swift-5.7.3 @swift-5.6.3 @swift-5.5.3 struct S { private var _x = [1, 2, 3] var x: [Int] { _read { yield _x } _modify { yield &_x } } } var s = S() s.x.append(4) debugPrint(s) (edited)