import { SortedArray } from "https://deno.land/x/structurae@4.0.1/sorted-array.ts";
Extends Array to handle sorted data.
Methods
Returns a merger of the array with one or more provided sorted arrays.
Returns a range of elements of the array that are greater or equal to the provided starting element and less or equal to the provided ending element.
Static Methods
Creates a new SortedArray from a given array-like object.
Returns the difference of two sorted arrays,
i.e. elements present in the first array but not in the second array.
If symmetric=true
finds the symmetric difference of two arrays, that is,
the elements that are absent in one or another array.
Returns the amount of differing elements in the first array.
Uses binary search to find the index of an element inside a sorted array.
Returns the intersection of two sorted arrays.
Returns the amount of common elements in two sorted arrays.
Returns a range of elements of a sorted array from the start through the end inclusively.
Returns the union of two sorted arrays as a sorted array.
Returns an array of unique elements from a sorted array.
Checks whether an array is sorted according to a provided comparator.
Checks whether an array has any duplicating elements.
Creates a new SortedArray instance with a variable number of arguments, regardless of number or type of the arguments