10. @propertyWrapper
struct Sorting<Element:Comparable> {
private var elements: [Element]
init(wrappedValue: [Element]) {
elements = wrappedValue
}
var wrappedValue: [Element] {
get { elements }
set { elements = newValue.sorted() }
}
}
@Sorting var values: [Int] = []