See the
illustration of JavaScript's lambda construct.
See that Scheme's
stack frames persist.
We escalate as follows:
var w = function (r){return r-1;}; var y = function (){return w;} var z = function (){return function (r){return r-1;};} var u = function (){var v = 19; return function (r){return r-v;};} document.write("Pure lambda calculus: " + (function (x){return x+3;})(4)); document.write("<br>Yield of w(5) is "+ w(5)); document.write("<br>Yield of y()(9) is "+ y()(9)); document.write("<br>Yield of z()(9) is "+ z()(9)); document.write("<br>Yield of u()(9) is "+ u()(9));
It seems that in MSIE, at least, the frames persist at least as necessary! But this demonstration might have retained only the value of v but not its storage; proceed.