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

Add support for matching on rationals #265

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

saulshanabrook
Copy link
Member

This PR adds numer and denom functions to deconstruct rationals.

Otherwise, I couldn't seem to match on the pieces of them in rules, so this lets you do that now.

@saulshanabrook saulshanabrook requested a review from a team as a code owner October 24, 2023 20:35
@saulshanabrook saulshanabrook requested review from ajpal and removed request for a team October 24, 2023 20:35
Copy link
Member

@oflatt oflatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change!

@oflatt oflatt merged commit ceed816 into egraphs-good:main Oct 25, 2023
3 checks passed
@saulshanabrook saulshanabrook deleted the match-rational branch October 25, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants