Concept Flow - Capturing values from context
Define variable x = 10
Define closure capturing x
Call closure
Closure uses captured x
Print result
Change x after closure defined
Call closure again
Closure uses current value of captured x
This flow shows how a closure captures a variable by reference from its surrounding context and uses the current value of the captured variable when called, even after the original variable changes later.