mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
add is_empty to Procs
This commit is contained in:
parent
f74471012c
commit
9761aabe65
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ impl<'a> Procs<'a> {
|
||||||
.sum()
|
.sum()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn is_empty(&self) -> bool {
|
||||||
|
self.len() == 0
|
||||||
|
}
|
||||||
|
|
||||||
fn insert_builtin(&mut self, symbol: Symbol) {
|
fn insert_builtin(&mut self, symbol: Symbol) {
|
||||||
self.builtin.insert(symbol);
|
self.builtin.insert(symbol);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue