TreeMap::empty
pub static fn empty() -> TreeMap<K, V> Import
Source: use collections::tree::{TreeMap}; src/collections/tree.hy Creates an empty map; the same as TreeMap::new.
Returns#
TreeMap<K, V>
See also#
TreeMap::newTreeMap: An ordered map from keys of typeKto values of typeV.TreeMap::size: Returns the number of entries.TreeMap::is_empty: Returnstruewhen the map has no entries.TreeMap::clear: Removes every entry.TreeMap::iter: Returns an iterator over the entries in ascending key order.TreeMap::insert: Storesvunderk, replacing any value already there.TreeMap::contains: Returnstruewhen the map has an entry fork.