add-atom ( a disjoint-set -- )
Factor handbook » The language » Collections » Disjoint sets

Prev:equiv-set-size ( a disjoint-set -- n )
Next:equate ( a b disjoint-set -- )


Vocabulary
disjoint-sets

Inputs
aan object
disjoint-seta disjoint-set


Outputs
None

Word description
Adds a new element to the disjoint set, initially only equivalent to itself.

Definition

GENERIC: add-atom ( a disjoint-set -- )


Methods