Skip to main content
Go to Latest
method RBTree.prototype.insert
import { RBTree } from "https://deno.land/std@0.157.0/collections/rb_tree.ts";

Adds the value to the binary search tree if it does not already exist in it. Returns true if successful.

Parameters

value: T

Returns

boolean