diff options
Diffstat (limited to 'crates/fparkan-script')
| -rw-r--r-- | crates/fparkan-script/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/fparkan-script/src/lib.rs b/crates/fparkan-script/src/lib.rs index 2c3eccf1..336828ea 100644 --- a/crates/fparkan-script/src/lib.rs +++ b/crates/fparkan-script/src/lib.rs @@ -2021,6 +2021,11 @@ impl Handler2RecordScheduler { &self.records } + /// Forgets a solved problem so a later submission can create it again. + pub fn remove(&mut self, key: Handler2RecordKey) { + self.records.retain(|record| record.key != key); + } + /// Inserts or refreshes one resolved handler input. /// /// The original compares the three identity words bit-for-bit. On an |
