Closed
Description
What are the semantics of "duplicate" assertions? If I assert e.g. (is ball red)
multiple times I get multiple results when I match
on it, which indicates that the individual atoms are not "interned" or deduplicated in any way -- they are fully distinct. But when I remove-atom
just once, they all disappear, which would indicate a kind of interning/deduplication.
(is ball red)
(is ball red)
(is ball red)
(is ball red)
(is ball red)
! (match &self (is ball $color) $color)
! (remove-atom &self (is ball red))
! (match &self (is ball $color) $color)
[red, red, red, red, red]
[()]
[]
Can you clarify what is happening?
Metadata
Assignees
Labels
No labels
Activity