Add implements the FactStore interface by adding the fact to the backing map.
(a ast.Atom)
| 785 | |
| 786 | // Add implements the FactStore interface by adding the fact to the backing map. |
| 787 | func (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. |
| 796 | func (s *MultiIndexedArrayInMemoryStore) Remove(a ast.Atom) bool { |