Hash returns a hash code for this atom.
()
| 1016 | |
| 1017 | // Hash returns a hash code for this atom. |
| 1018 | func (a Atom) Hash() uint64 { |
| 1019 | return hashTerm(a.Predicate.Symbol, a.Args) |
| 1020 | } |
| 1021 | |
| 1022 | // ApplySubst returns the result of applying given substitution to this atom. |
| 1023 | func (a Atom) ApplySubst(s Subst) Term { |