Skip to content

Commit

Permalink
Duplicate atoms in AtomIndex to reproduce old GroundingSpace behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbogd committed Jan 31, 2025
1 parent e8b9d9e commit ceee129
Show file tree
Hide file tree
Showing 2 changed files with 240 additions and 30 deletions.
5 changes: 5 additions & 0 deletions lib/src/atom/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,11 @@ impl BindingsSet {
pub fn single() -> Self {
BindingsSet(smallvec::smallvec![Bindings::new()])
}

/// Creates a new unconstrained BindingsSet
pub fn count(count: usize) -> Self {
BindingsSet(smallvec::SmallVec::from_elem(Bindings::new(), count))
}

/// Returns `true` if a BindingsSet contains no Bindings Objects (fully constrained)
///
Expand Down
Loading

0 comments on commit ceee129

Please sign in to comment.