You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function curry(f) {
return x => y => f(x, y);
}
curry(math_pow)(3)(4);
undefined;
However, in the lectures, we also show the function objects that get created:
A "complete" solution would also need to show all pairs that get created during the program run, regardless whether they are referred to by names or not.
The text was updated successfully, but these errors were encountered:
Here is an idea how to fix it: We could create a dummy binding in the current environment for EVERY value, regardless whether they have other bindings in the same environment or not. We could mark those dummy bindings such that the dummy name doesn't occupy a row in the frame and no arrow is drawn.
https://share.sourceacademy.nus.edu.sg/02vj2
function curry(f) {
return x => y => f(x, y);
}
curry(math_pow)(3)(4);
undefined;
However, in the lectures, we also show the function objects that get created:
A "complete" solution would also need to show all pairs that get created during the program run, regardless whether they are referred to by names or not.
The text was updated successfully, but these errors were encountered: