-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
@@ -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 = {} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
…als whether they contain only alphas, betas, or none.
@Lettmann Sorry, I know you didn't want this PR to be merged yet, but I need the cleaned-up version. |
No description provided.