Assumes captured does not contain foundVar (and thus neither any vars derived from it).
Since captured uses only external variables, a closure will be created.
Assumes captured does not contain foundVar (and thus neither any vars derived from it).
Since captured uses only external variables, a closure will be created.