graph-builder
Version:
A graph builder library for modeling abstract graph structures.
15 lines (14 loc) • 708 B
TypeScript
export declare namespace Sets {
/**
* Returns an unmodifiable <b>view</b> of the difference of two sets. The returned set contains
* all elements that are contained by `set1` and not contained by `set2`. `set2`
* may also contain elements not present in `set1`; these are simply ignored. The iteration
* order of the returned set matches that of `set1`.
*
* <p>Results are undefined if `set1` and `set2` are sets based on different
* equivalence relations (as `HashSet`, `TreeSet`, and the keySet of an
* `IdentityHashMap` all are).
*/
const difference: <E>(set1: Set<E>, set2: Set<E>) => Set<E>;
const equals: <N>(a: Set<N>, b: Set<N>) => boolean;
}