AddVarsFromClause adds all variables from term to map, where term is either variable, constant or atom.
(clause Clause, m map[Variable]bool)
| 1446 | // AddVarsFromClause adds all variables from term to map, where term is |
| 1447 | // either variable, constant or atom. |
| 1448 | func 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. |
| 1456 | func SortIndexInto(keys []*Constant, index []int) { |