What does this program print?

from Closures
Swift 6.3.3 intermediate 2 min

What does this program print?

swift
func demonstrateCapture() {
    var multiplier = 2
    let live = { (value: Int) in value * multiplier }
    let snapshot = { [multiplier] (value: Int) in
        value * multiplier
    }

    multiplier = 4
    print(live(3))
    print(snapshot(3))
}

demonstrateCapture()
Open in playground
Report an error