Starting to convert main_do, statistics, frequency not working

frequency not working, also need to look into perpetual better
This commit is contained in:
elvis
2025-07-01 04:04:13 +02:00
parent 65d6c93424
commit 5af8cd98c2
9 changed files with 450 additions and 207 deletions

View File

@ -20,6 +20,12 @@ impl Translator {
}
}
impl Default for Translator {
fn default() -> Self {
Translator::new()
}
}
impl Translator {
pub fn encode(&mut self, s: impl Into<String>) -> IdType {
let s = s.into();
@ -144,7 +150,7 @@ fn print_set(
set: &RSset
) -> fmt::Result {
write!(f, "{{")?;
let mut it = set.hashset().iter().peekable();
let mut it = set.iter().peekable();
while let Some(el) = it.next() {
if it.peek().is_none() {
write!(f, "{}", translator.decode(*el))?;