The PR introduces the following new unary predicate method:
DisjointSet#isSingleton(value)
Determines whether the given element value is part of a singleton disjoint-set, a set of size 1 with value as its representative element, returning true or false as appropriate.
Also, the corresponding TypeScript ambient declarations are included in the PR.
Description
The PR introduces the following new unary predicate method:
DisjointSet#isSingleton(value)
Determines whether the given element
value
is part of a singleton disjoint-set, a set of size1
withvalue
as its representative element, returningtrue
orfalse
as appropriate.Also, the corresponding TypeScript ambient declarations are included in the PR.