Documentation
¶
Overview ¶
Package unionfind is an implementation of Union-Find for use in unification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UnionFind ¶
type UnionFind struct {
// contains filtered or unexported fields
}
UnionFind holds a data structure that permits fast unification.
func InitVars ¶
InitVars initializes a unionfind with a given substitution. The caller needs to ensure that none of the variables is "_" and none of the variables appears among the terms.
func UnifyTerms ¶
UnifyTerms unifies two same-length lists of relational terms. It does not handle apply-expressions.
func UnifyTermsExtend ¶
UnifyTermsExtend unifies two same-length lists of relational terms, returning an extended UnionFind. It does not handle apply-expressions.
func (UnionFind) AsConstSubstList ¶
func (uf UnionFind) AsConstSubstList() ast.ConstSubstList
AsConstSubstList turns this UnionFind structure into a linked list representation.
Click to show internal directories.
Click to hide internal directories.