mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
add RocSet.is_empty
This commit is contained in:
parent
3bcefd7f68
commit
1f31e16896
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ impl<T> RocSet<T> {
|
|||
self.0.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.0.is_empty()
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub fn with_capacity(capacity: usize) -> Self {
|
||||
Self(RocDict::with_capacity(capacity))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue