use can_be(list, _) in all solutions predicates

This commit is contained in:
Mark Thom
2019-03-30 10:44:49 -06:00
parent 5a30c7b9be
commit 8945bae70b
5 changed files with 15 additions and 20 deletions

View File

@@ -56,7 +56,7 @@ impl<'a> HCPreOrderIterator<'a> {
/*
* descend into the subtree where the iterator is currently parked
* and check that the leftmost leaf is a number, with every node
* encountered on the way an infix or postfix operator, and not blocked
* encountered on the way an infix or postfix operator, unblocked
* by brackets.
*/
fn leftmost_leaf_is_positive_number(&self) -> bool {