Associated function in collections::map · HashMap coil-stdlib

HashMap::new

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

Creates an empty map.

Returns#

HashMap<K, V>

Examples#

use collections::map::{HashMap};
use tests::assert;
let m: HashMap<string, int> = HashMap::new();
assert!(m.size() == 0);

See also#

↑ ↓ navigate ↵ open