add RocDict.is_empty

This commit is contained in:
Brian Hicks 2022-09-07 15:08:32 -05:00
parent c993d882cc
commit 3bcefd7f68
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50

View File

@ -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))
}