Home Manual Reference Source

Overview

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@binary-search-tree/red-black-tree

npm

npm install @binary-search-tree/red-black-tree --save

Usage

The code needs a ES2015+ polyfill to work, for example regenerator-runtime/runtime.

await import( 'regenerator-runtime/runtime.js' ) ;
// or
import 'regenerator-runtime/runtime.js' ;

Then

const { empty , from } = await import( '@binary-search-tree/red-black-tree' ) ;
// or
import { empty , from } from '@binary-search-tree/red-black-tree' ;

Examples