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

Fix generation and evaluation of Nock isCell op #2602

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

paulcadman
Copy link
Collaborator

This PR fixes the generation and evaluation of the Nock isCell op.

As we can see from its definition, the isCell op (Nock 3) evaluates its argument:

*[a 3 b]            ?*[a b]

Previously we were not evaluating the argument before checking if it is an atom/cell.

@paulcadman paulcadman merged commit df9b17d into main Jan 26, 2024
4 checks passed
@paulcadman paulcadman deleted the fix-opiscell branch January 26, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants