use eager_stackful_preorder_iter in variable_set, add term_variables/1 tests

This commit is contained in:
Mark
2023-10-04 15:12:25 -06:00
parent 1bfdea7527
commit 0ad4427f83
5 changed files with 106 additions and 14 deletions

View File

@@ -12,6 +12,14 @@ use modular_bitfield::prelude::*;
use std::ops::Deref;
use std::vec::Vec;
#[inline(always)]
pub fn eager_stackful_preorder_iter(
heap: &mut Heap,
value: HeapCellValue,
) -> EagerStackfulPreOrderHeapIter {
EagerStackfulPreOrderHeapIter::new(heap, value)
}
/*
* Unlike StackfulPreOrderHeapIter, this iterator not only marks
* cyclic terms for the sake of skipping them at the second visit but