Interface ILockedTMTape

Immutable tape informaiton to refer.

interface ILockedTMTape {
    getWrittenRange(): {
        left: number;
        right: number;
    };
    read(n): TMSymbol;
    toString(): string;
}

Methods

  • Returns {
        left: number;
        right: number;
    }

    • left: number
    • right: number
  • Returns nth symbol of the tape.

    Parameters

    • n: number

      Index of tape. Can be < 0.

    Returns TMSymbol

    If written something on nth location, return it. If not, return blank symbol, specified by the machine.

  • Returns string representation of this tape.

    Returns string

    String representation of this tape.

Generated using TypeDoc