Source code

Revision control

Copy as Markdown

Other Tools

function loop(f) {
var p;
for (var i = 0; i < 10; ++i) {
p = f();
}
return p;
}
function f(j, k) {
var g = function() { return k; }
var ans = '';
for (k = 0; k < 5; ++k) {
ans += loop(g);
}
return ans;
}
var t0 = new Date;
var actual = f(1);
assertEq(actual, '01234');