klaudiosinani / dsforest

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

Add new `DisjointSet#clear()` class method (#3) #17

Closed klaudiosinani closed 5 years ago

klaudiosinani commented 5 years ago

Description

The PR introduces the following new nullary method:

Mutates the disjoint-set forest instance by removing all residing elements and sets, returning it completely empty.

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