binary-search-tree/red-black-tree

View on GitHub
README.md

Summary

Maintainability
Test Coverage
:christmas_tree: [@binary-search-tree/red-black-tree](https://binary-search-tree.github.io/red-black-tree)
==

<p align="center">
<img src="https://raw.github.com/binary-search-tree/red-black-tree/main/media/sketch.svg" width="480">
</p>

```js
import {from} from '@binary-search-tree/red-black-tree';
import {increasing} from '@total-order/primitive';
import {range} from '@iterable-iterator/range';
let tree = from( increasing , range( 100000 ) ) ;
```

Red-black tree library for JavaScript.
See [documentation](https://binary-search-tree.github.io/red-black-tree/index.html).
Parent is [js-bst](https://github.com/make-github-pseudonymous-again/js-bst).

[![License](https://img.shields.io/github/license/binary-search-tree/red-black-tree.svg)](https://raw.githubusercontent.com/binary-search-tree/red-black-tree/main/LICENSE)
[![Version](https://img.shields.io/npm/v/@binary-search-tree/red-black-tree.svg)](https://www.npmjs.org/package/@binary-search-tree/red-black-tree)
[![Tests](https://img.shields.io/github/actions/workflow/status/binary-search-tree/red-black-tree/ci.yml?branch=main&event=push&label=tests)](https://github.com/binary-search-tree/red-black-tree/actions/workflows/ci.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/binary-search-tree/red-black-tree.svg)](https://github.com/binary-search-tree/red-black-tree/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/binary-search-tree/red-black-tree.svg)](https://github.com/binary-search-tree/red-black-tree/issues)
[![Downloads](https://img.shields.io/npm/dm/@binary-search-tree/red-black-tree.svg)](https://www.npmjs.org/package/@binary-search-tree/red-black-tree)

[![Code issues](https://img.shields.io/codeclimate/issues/binary-search-tree/red-black-tree.svg)](https://codeclimate.com/github/binary-search-tree/red-black-tree/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/binary-search-tree/red-black-tree.svg)](https://codeclimate.com/github/binary-search-tree/red-black-tree/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/binary-search-tree/red-black-tree/main.svg)](https://codecov.io/gh/binary-search-tree/red-black-tree)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/binary-search-tree/red-black-tree.svg)](https://codeclimate.com/github/binary-search-tree/red-black-tree/trends/technical_debt)
[![Documentation](https://binary-search-tree.github.io/red-black-tree/badge.svg)](https://binary-search-tree.github.io/red-black-tree/source.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/@binary-search-tree/red-black-tree)](https://bundlephobia.com/result?p=@binary-search-tree/red-black-tree)