UNPKG

sonic-forest

Version:

High-performance (binary) tree and sorted map implementation (AVL, Splay, Radix, Red-Black)

3 lines (2 loc) 125 B
import type { HeadlessNode } from '../types'; export declare const swap: <N extends HeadlessNode>(root: N, x: N, y: N) => N;