data.structure

implementation of the basic structures

Usage no npm install needed!

<script type="module">
  import dataStructure from 'https://cdn.skypack.dev/data.structure';
</script>

README

npm npm

data.structure

Implementation of the basic structures of the language TypeScript

Installation

Prerequisites

data.structure require TypeScript 2 or higher. npm

Install

npm install data.structure --save-dev

Usage

import * as DS from 'data.structure'; // import of all structures
let numberList: DS.DoublyLinkedList<string> = new DS.DoublyLinkedList<string>();
  
import { LinkedList, DoublyLinkedList } from 'data.structure/src/linked-list'; // import lists
let numberList: LinkedList<number> = new LinkedList<number>();
  
numberList.add(123);

Documentation

Description of the basic methods and properties provided by structures.