Add column flag to count command

This commit is contained in:
Joseph T Lyons
2020-08-15 01:36:15 -04:00
committed by Andrés N. Robalino
parent 8fe269a3d8
commit c6588c661a
3 changed files with 57 additions and 13 deletions

View File

@ -188,6 +188,11 @@ impl Dictionary {
pub fn insert_data_at_key(&mut self, name: &str, value: Value) {
self.entries.insert(name.to_string(), value);
}
/// Return size of dictionary
pub fn length(&self) -> usize {
self.entries.len()
}
}
/// A helper to help create dictionaries for you. It has the ability to insert values into the dictionary while maintaining the tags that need to be applied to the individual members