Handbook
Glossary
equiv? ( a b disjoint-set -- ? )
Factor handbook
»
The language
»
Collections
»
Disjoint sets
Prev:
assoc>disjoint-set ( assoc -- disjoint-set )
Next:
equiv-set-size ( a disjoint-set -- n )
Vocabulary
disjoint-sets
Inputs
a
an
object
b
an
object
disjoint-set
a
disjoint-set
Outputs
?
a
boolean
Word description
Tests if two elements belong to the same equivalence class.
Definition
IN:
disjoint-sets
GENERIC:
equiv?
( a b disjoint-set -- ? )
Methods
USING:
disjoint-sets
disjoint-sets.private
kernel
;
M:
disjoint-set
equiv?
representatives
=
;