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

Method Add

factstore/factstore.go:787–793  ·  view source on GitHub ↗

Add implements the FactStore interface by adding the fact to the backing map.

(a ast.Atom)

Source from the content-addressed store, hash-verified

785
786// Add implements the FactStore interface by adding the fact to the backing map.
787func (s *MultiIndexedArrayInMemoryStore) Add(a ast.Atom) bool {
788 added := s.addAtom(a)
789 if added {
790 s.count++
791 }
792 return added
793}
794
795// Remove removes the fact from the backing map.
796func (s *MultiIndexedArrayInMemoryStore) Remove(a ast.Atom) bool {

Callers 2

MergeMethod · 0.95
evalMethod · 0.95

Calls 1

addAtomMethod · 0.95

Tested by

no test coverage detected