Untitled
unknown
swift
2 years ago
324 B
4
Indexable
Never
struct Obj { var value: Bool } func run() { let originalArray: Array? = [Obj(value: false), Obj(value: false), Obj(value: false)] if let arr = originalArray { for var val in arr { val.value = true } } print(originalArray) }