add is_empty to Procs

This commit is contained in:
Folkert 2020-03-12 12:58:03 +01:00
parent f74471012c
commit 9761aabe65

View File

@ -43,6 +43,10 @@ impl<'a> Procs<'a> {
.sum()
}
pub fn is_empty(&self) -> bool {
self.len() == 0
}
fn insert_builtin(&mut self, symbol: Symbol) {
self.builtin.insert(symbol);
}