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

Clean up branch (Cut-intro) Don't merge yet #612

Merged
merged 10 commits into from
Jun 22, 2017
Merged

Conversation

Lettmann
Copy link
Contributor

No description provided.

@Lettmann Lettmann changed the title change some code of the Pi2SeHs class and add a suggestion for Expr (I don't know the best way to program that) Clean up branch Mar 10, 2017
@Lettmann Lettmann changed the title Clean up branch Clean up branch (Cut-intro) Mar 10, 2017
@Lettmann Lettmann changed the title Clean up branch (Cut-intro) Clean up branch (Cut-intro) Don't merge yet Mar 10, 2017
@@ -105,6 +105,11 @@ abstract class Expr {
*/
def find( exp: Expr ): List[HOLPosition] = getPositions( this, _ == exp )

/*
Tests whether an expression is a subexpression.
def contains( exp: Expr ): Boolean = {}
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a reasonable addition. You could implement it using the find method that's right above it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, that is the point why I mentioned it. I thought that there should be a better way of implementing this than using positions (given that positions should not be necessary to do so)

@gebner gebner merged commit 2c7f953 into master Jun 22, 2017
@gebner
Copy link
Member

gebner commented Jun 22, 2017

@Lettmann Sorry, I know you didn't want this PR to be merged yet, but I need the cleaned-up version.

@gebner gebner deleted the pi2-cut-intro-clean-up branch August 7, 2017 09:46
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