|
@@ -14,7 +14,7 @@ namespace SortedArray {
|
|
|
export const ofSortedArray: <T extends number = number>(xs: ArrayLike<number>) => SortedArray<T> = Impl.ofSortedArray as any;
|
|
|
|
|
|
export const ofRange: <T extends number = number>(min: T, max: T) => SortedArray<T> = Impl.ofRange as any;
|
|
|
-
|
|
|
+
|
|
|
export const ofBounds: <T extends number = number>(min: T, max: T) => SortedArray<T> = (min, max) => Impl.ofRange(min, max - 1) as any;
|
|
|
export const is: <T extends number = number>(v: any) => v is SortedArray<T> = Impl.is as any;
|
|
|
|