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

Method Remove

factstore/factstore.go:796–802  ·  view source on GitHub ↗

Remove removes the fact from the backing map.

(a ast.Atom)

Source from the content-addressed store, hash-verified

794
795// Remove removes the fact from the backing map.
796func (s *MultiIndexedArrayInMemoryStore) Remove(a ast.Atom) bool {
797 removed := s.removeAtom(a)
798 if removed {
799 s.count--
800 }
801 return removed
802}
803
804func (s *MultiIndexedArrayInMemoryStore) addAtom(a ast.Atom) bool {
805 if a.Predicate.Arity == 0 {

Callers

nothing calls this directly

Calls 1

removeAtomMethod · 0.95

Tested by

no test coverage detected