MCPcopy
hub / github.com/google/mangle / Hash

Method Hash

ast/ast.go:1018–1020  ·  view source on GitHub ↗

Hash returns a hash code for this atom.

()

Source from the content-addressed store, hash-verified

1016
1017// Hash returns a hash code for this atom.
1018func (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.
1023func (a Atom) ApplySubst(s Subst) Term {

Callers 1

TestAtomHashFunction · 0.95

Calls 1

hashTermFunction · 0.85

Tested by 1

TestAtomHashFunction · 0.76