tsdotnet / linked-list

A doubly (bidirectional) linked list. Acts as a safe, value focused wrapper for a linked-node-list.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt text tsdotnet / linked-list

GitHub license 100% code coverage npm-publish npm version

A doubly (bidirectional) linked list. Acts as a safe, value focused wrapper for a linked-node-list.

Docs

tsdotnet.github.io/linked-list

This value focused linked list offers a safe to use node interface that only generates externally accessible nodes on demand.

interface LinkedListNode<T>
{
  list: LinkedList<T>;
  previous: LinkedListNode<T> | undefined;
  next: LinkedListNode<T> | undefined;

  value: T;

  addBefore (entry: T): void;
  addAfter (entry: T): void;
  remove (): void;
}

About

A doubly (bidirectional) linked list. Acts as a safe, value focused wrapper for a linked-node-list.

License:MIT License


Languages

Language:TypeScript 98.4%Language:JavaScript 1.6%