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

In this snippet, when does the closure capture the value of `count`, and what is printed?

var count = 1 let printer = { [count] in print(count) } count += 1 printer()