scanToTermLeaf