ts-collection
Version:
This is re-write of the java collection classes in typescript. There is some tweak as typescript templates are not as equivalent as Java.
12 lines (11 loc) • 400 B
TypeScript
import { Set } from "./set";
import { Comparator } from "./comparator";
export interface SortedSet<E> extends Set<E> {
comparator(): Comparator<E>;
subSet(fromElement: E, toElement: E): SortedSet<E>;
headSet(toElement: E): SortedSet<E>;
tailSet(fromElement: E): SortedSet<E>;
first(): E;
last(): E;
}
export declare function isSortedSet<E>(param: any): param is SortedSet<E>;