ListIterator

sealed class ListIterator : Iterator<Term>

An Iterator walking the elements of a List, from Cons.head to Cons.head, following Cons.tail chains. Iterating a partial (ill-formed) list simply stops when a non-Cons, non-EmptyList tail is reached, without throwing. The Substituting variants additionally apply a Substitution.Unifier to each element (and to the tail being followed) as they go, and the SkippingLast variants stop before yielding the final EmptyList marker (useful when only the "real" elements are wanted).

Inheritors

Types

Link copied to clipboard
class All(list: List) : ListIterator
Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
sealed class Substituting : ListIterator

Functions

Link copied to clipboard
open operator override fun hasNext(): Boolean
Link copied to clipboard
open operator override fun next(): Term
Link copied to clipboard
open fun onEmptyList(item: EmptyList): Term