SplitScript reference / MapEntry<K, V>
MapEntry<K, V>
type constructor
MapEntry<K, V>
Stores one key-value pair yielded while iterating a Map.
Both fields are immutable snapshots. A later replacement in the source map does not change an entry that was already yielded.
Examples
Destructure a map entry
let routes = Map.new<String, u32>()
routes["Atrium"] = 12
for { key, value } in routes {
print(`{key}: {value}`)
}