A variable which can be unified; alternately, this can be thought of as an equivalence class with a distinguished representative.
Moduleghc-10.0.0.20260917GHC2024
GHC.Data.UnionFind
- 2 types
- 7 values
- Packageghc-10.0.0.20260917
- Exports9
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceUnionFind.hs
Mutable write to a Point
Read the current value of Point.
Create a fresh equivalence class with one element.
Flatten any chains of links, returning a Point which points directly to the canonical representation.
Return the canonical element of an equivalence class Point.
Unify two equivalence classes, so that they share a canonical element. Keeps the descriptor of point2.
Test if two points are in the same equivalence class.