UNPKG

dastal

Version:

Data Structures & Algorithms implementations

16 lines (15 loc) 255 B
/** * A linked node interface. * * Each node links to its next neighbor. */ export interface LinkedNode<T> { /** * A link to the node's neighbor. */ next?: LinkedNode<T>; /** * The value of the node. */ value: T; }