Anonymous user
Same fringe: Difference between revisions
Updated D entry
(→{{header|Scheme}}: bug -- reorder avoids (car '()) when trees differ only in length) |
(Updated D entry) |
||
Line 597:
private Stack!BT stack;
pure nothrow invariant
assert(stack.empty || isLeaf(stack.head));
}
Line 605:
stack.push(t);
if (!isLeaf(t)) {
// Here the invariant
// invariant
nextLeaf
}
}
|