klaudiosinani / dsforest

Disjoint-set forests for ES6
MIT License
16 stars 0 forks source link

Add new `DisjointSet#includes(value)` class method (#3) #4

Closed klaudiosinani closed 5 years ago

klaudiosinani commented 5 years ago

Description

The PR introduces the following new unary predicate method:

Determines whether the given element value is part of a set, returning true or false as appropriate.

Also, the corresponding TypeScript ambient declarations are included in the PR.