Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend try-again to return a value #17

Closed
arsalan0c opened this issue Feb 14, 2020 · 0 comments
Closed

Extend try-again to return a value #17

arsalan0c opened this issue Feb 14, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@arsalan0c
Copy link
Collaborator

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.

@arsalan0c arsalan0c self-assigned this Feb 14, 2020
@arsalan0c arsalan0c added the enhancement New feature or request label Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant