Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/data_structures/mod.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.219.1/data_structures/mod.ts";

Classes

A priority queue implemented with a binary heap. The heap is in descending order by default, using JavaScript's built-in comparison operators to sort the values.

An unbalanced binary search tree. The values are in ascending order by default, using JavaScript's built-in comparison operators to sort the values.

A red-black tree. This is a kind of self-balancing binary search tree. The values are in ascending order by default, using JavaScript's built-in comparison operators to sort the values.

Functions

Compares its two arguments for ascending order using JavaScript's built in comparison operators.

Compares its two arguments for descending order using JavaScript's built in comparison operators.