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
Currently, a global variable final_result is used to capture the result of an amb statement. When try_again is invoked, final_result is updated with the new value while try_again returns undefined.
Having try_again return a value can provide a cleaner way of accessing the new value.
The text was updated successfully, but these errors were encountered:
Currently, a global variable
final_result
is used to capture the result of anamb
statement. Whentry_again
is invoked,final_result
is updated with the new value whiletry_again
returnsundefined
.Having
try_again
return a value can provide a cleaner way of accessing the new value.The text was updated successfully, but these errors were encountered: