Skip to content

TapeIterator


final class TapeIterator<Type>(head:TapeNode<Type>?) < Iterator<Type>

Iterator over a Tape.

  • head: Head node.

Factory Functions

Name Description
TapeIterator Create a TapeIterator.

Member Variables

Name Description
node:TapeNode<Type>? Current node.

Member Functions

Name Description
hasNext Is there a next element?
next Get the next element.

Factory Function Details

function TapeIterator<Type>(head:TapeNode<Type>?) -> TapeIterator<Type>

Create a TapeIterator.

Member Function Details

hasNext

function hasNext() -> Boolean

Is there a next element?

next

function next() -> Type

Get the next element.