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
None of your solutions are correct. In your solutions, the evaluation order of arguments depends on the evaluation order of arguments of pair and append.
// left to rightfunctionlist_of_values_left_to_right(exps,env){returnis_null(exps) ? null : (()=>{constfst=evaluate(head(exps),env);constsnd=list_of_values_left_to_right(tail(exps),env);returnpair(fst,snd);})();}// right to leftfunctionlist_of_values_right_to_left(exps,env){returnis_null(exps) ? null : (()=>{constsnd=list_of_values_right_to_left(tail(exps),env);constfst=evaluate(head(exps),env);returnpair(fst,snd);})();}
The text was updated successfully, but these errors were encountered: