mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
add RocDict.is_empty
This commit is contained in:
parent
c993d882cc
commit
3bcefd7f68
@ -18,6 +18,10 @@ impl<K, V> RocDict<K, V> {
|
||||
self.0.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.0.is_empty()
|
||||
}
|
||||
|
||||
pub fn with_capacity(capacity: usize) -> Self {
|
||||
Self(RocList::with_capacity(capacity))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user