Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftretain cycles and capture listsSingle-choice MCQ

What is captured by `[value]` in this capture list, and what does the closure print if `value` is mutated after the closure is created?

var value = 1 let closure = { [value] in print(value) } value = 2 closure() // prints ?