1 2 3 4 5 6 7 8 9 10 11 12
#[derive(Default)] pub struct SymbolGenerator { counter: u128, } impl SymbolGenerator { pub fn gensym(&mut self, name: &str) -> String { let out = format!("#{}#{}", name, self.counter); self.counter += 1; out } }