equiv-set-size ( a disjoint-set -- n )
Factor handbook » The language » Collections » Disjoint sets

Prev:equiv? ( a b disjoint-set -- ? )
Next:add-atom ( a disjoint-set -- )


Vocabulary
disjoint-sets

Inputs
aan object
disjoint-seta disjoint-set


Outputs
nan integer


Word description
Outputs the number of elements in the equivalence class of a.

Definition

GENERIC: equiv-set-size ( a disjoint-set -- n )


Methods