Advanced
Swift
Q94 / 100
What is Swift's _modify accessor?
Correct! Well done.
Incorrect.
The correct answer is B) A coroutine-based accessor yielding a mutable reference to a property value, enabling in-place mutation without get/set copies
B
Correct Answer
A coroutine-based accessor yielding a mutable reference to a property value, enabling in-place mutation without get/set copies
Explanation
_modify is part of Swift's coroutine-based accessor model. It yields an inout reference, enabling operations like array[0] += 1 to work in-place without copying.
Progress
94/100