Skip to main content
Module

x/collections/mod.ts

Collection data structures that are not standard built-in objects in JavaScript. This includes a vector (double-ended queue), binary heap (priority queue), binary search tree, and a red black tree.
Very Popular
Latest
File
/** This module is browser compatible. */
export { Vector } from "./vector.ts";export { BinaryHeap } from "./binary_heap.ts";export { ascend, descend } from "./comparators.ts";export { count, randomInt, range, shuffle, swap } from "./common.ts";export type { RandomIntOptions, RangeOptions } from "./common.ts";export { BSTree } from "./trees/bs_tree.ts";export { RBTree } from "./trees/rb_tree.ts";