NewSimpleInMemoryStore constructs a new SimpleInMemoryStore.
()
| 129 | |
| 130 | // NewSimpleInMemoryStore constructs a new SimpleInMemoryStore. |
| 131 | func NewSimpleInMemoryStore() SimpleInMemoryStore { |
| 132 | return SimpleInMemoryStore{ |
| 133 | NewInMemoryStore[map[uint64]ast.Atom](), |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // GetFacts implementation that looks up facts from an in-memory map. |
| 138 | func (s SimpleInMemoryStore) GetFacts(a ast.Atom, fn func(ast.Atom) error) error { |