Interface LinkedNode<T>

A doubly-linked node.

If a node is to move from one list to another, it must be removed first.

interface LinkedNode<T> {
    next: null | LinkedNode<T>;
    previous: null | LinkedNode<T>;
    removed: boolean;
    value: T;
}

Type Parameters

  • T

Properties

next: null | LinkedNode<T>
previous: null | LinkedNode<T>
removed: boolean
value: T