A variable which can be unified; alternately, this can be thought of as an equivalence class with a distinguished representative.
Moduleghc-9.10.3GHC2021
GHC.Data.UnionFind
- 2 types
- 7 values
- Packageghc-9.10.3
- Exports9
- LanguageGHC2021
- 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.