ard/map
The ard/map module currently provides one helper for creating empty maps with Str keys.
Import it explicitly when needed:
use ard/mapnew() [Str: $V]
Section titled “new() [Str: $V]”Create a new empty map with Str keys and values of type $V. The value type is usually inferred from the assignment context.
use ard/map
let labels: [Str: Str] = map::new()let counts: [Str: Int] = map::new()This is equivalent to an empty map literal with an explicit type:
let labels: [Str: Str] = [:]