Concept Flow - Memory implications of captures
Define closure with capture
Closure captures variables
Variables retained in closure's memory
Closure used or stored
Memory retained until closure released
Closure released -> memory freed
This flow shows how a closure captures variables, retains them in memory, and how memory is freed when the closure is released.