Closures/Value capture: Difference between revisions
Content added Content deleted
Line 480: | Line 480: | ||
procedure vcapture(x) # vcapture closes over its argument |
procedure vcapture(x) # vcapture closes over its argument |
||
return makeProc { repeat { x[1]^2 @ &source } } |
return makeProc { repeat { (x[1]^2) @ &source } } |
||
end |
end |
||