-
Notifications
You must be signed in to change notification settings - Fork 19
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 Dag.applySeq for sequential rule application #9
Conversation
* Apply a sequence of rules in order | ||
* First apply one rule until it does not apply, then the next, etc.. | ||
*/ | ||
def applySeq(rules: Seq[Rule[N]]): Dag[N] = |
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.
want to call these phases
instead of rules
to sort of hint at the ordering part?
/** | ||
* If the current rule cannot apply, then try the argument here | ||
* Note, this applies in series at a given node, not on the whole | ||
* Dag after the first rule has run. For that, see Dag.applySeq |
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.
Missing a couple periods.
Modulo naming/grammar this is great. 👍 |
👍 |
Codecov Report
@@ Coverage Diff @@
## master #9 +/- ##
==========================================
+ Coverage 86.09% 86.24% +0.14%
==========================================
Files 12 12
Lines 187 189 +2
Branches 13 15 +2
==========================================
+ Hits 161 163 +2
Misses 26 26
Continue to review full report at Codecov.
|
No description provided.