method BinarySearchTree.fromimport { BinarySearchTree } from "https://deno.land/std@0.223.0/data_structures/binary_search_tree.ts"; from<T>(collection: ArrayLike<T> | Iterable<T> | BinarySearchTree<T>): BinarySearchTree<T>Creates a new binary search tree from an array like or iterable object. from<T>(collection: ArrayLike<T> | Iterable<T> | BinarySearchTree<T>, options: { compare?: (a: T, b: T) => number; }): BinarySearchTree<T>from<T, U, V>(collection: ArrayLike<T> | Iterable<T> | BinarySearchTree<T>, options: { compare?: (a: U, b: U) => number; map: (value: T, index: number) => U; thisArg?: V; }): BinarySearchTree<U>Creates a new binary search tree from an array like or iterable object. Type ParametersTParameterscollection: ArrayLike<T> | Iterable<T> | BinarySearchTree<T>ReturnsBinarySearchTree<T>Type ParametersTParameterscollection: ArrayLike<T> | Iterable<T> | BinarySearchTree<T>options: { compare?: (a: T, b: T) => number; }ReturnsBinarySearchTree<T>Type ParametersTUVParameterscollection: ArrayLike<T> | Iterable<T> | BinarySearchTree<T>options: { compare?: (a: U, b: U) => number; map: (value: T, index: number) => U; thisArg?: V; }ReturnsBinarySearchTree<U>