A major visual error happens when user switched between code files in their folder and running them on the CSE Machine. The error persists until you reload the page.
Code used:
- foo
function foo(n) {
const msg = "frame " + stringify(n);
}
for (let i = 0; i < 3; i = i + 1) {
foo(i);
}
- add_stream
function add_streams(s1, s2) {
return pair(head(s1) + head(s2),
() => add_streams(stream_tail(s1), stream_tail(s2)));
}
const strm = pair(1, () => pair(2, () => add_streams(strm, strm)));
eval_stream(strm, 10);
Here is what happened when I run the add_stream program first, then switched to foo:
Intended foo layout
Corrupted foo layout
And vice versa:
Corrupted add_stream layout
A major visual error happens when user switched between code files in their folder and running them on the CSE Machine. The error persists until you reload the page.
Code used:
Here is what happened when I run the add_stream program first, then switched to foo:
And vice versa: