Associated function in collections::tree · TreeMap coil-stdlib

TreeMap::new

pub static fn new() -> TreeMap<K, V>
Import
use collections::tree::{TreeMap};
Source: src/collections/tree.hy

Creates an empty map.

Returns#

TreeMap<K, V>

Examples#

use collections::tree::{TreeMap};
use tests::assert;
let m: TreeMap<string, int> = TreeMap::new();
assert!(m.is_empty());

See also#

↑ ↓ navigate ↵ open