MCPcopy Create free account
hub / github.com/google/mangle / AddVarsFromClause

Function AddVarsFromClause

ast/ast.go:1448–1453  ·  view source on GitHub ↗

AddVarsFromClause adds all variables from term to map, where term is either variable, constant or atom.

(clause Clause, m map[Variable]bool)

Source from the content-addressed store, hash-verified

1446// AddVarsFromClause adds all variables from term to map, where term is
1447// either variable, constant or atom.
1448func AddVarsFromClause(clause Clause, m map[Variable]bool) {
1449 AddVars(clause.Head, m)
1450 for _, p := range clause.Premises {
1451 AddVars(p, m)
1452 }
1453}
1454
1455// SortIndexInto sorts s and populates the index and hashes slice.
1456func SortIndexInto(keys []*Constant, index []int) {

Callers 2

ReplaceWildcardsMethod · 0.85
TestReplaceWildcardsFunction · 0.85

Calls 1

AddVarsFunction · 0.85

Tested by 1

TestReplaceWildcardsFunction · 0.68