mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 05:04:40 +02:00
Add column flag to count command
This commit is contained in:
committed by
Andrés N. Robalino
parent
8fe269a3d8
commit
c6588c661a
@ -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
|
||||
|
Reference in New Issue
Block a user