SplitScript reference / Map<K, V> / iterator
Map<K, V>.iterator
Method
Map<K, V>.iterator() -> iterator MapEntry<K, V> where K: Equatable
Creates an insertion-order cursor over this map's entries.
Structural mutation through insertion of a new key, removal, or clearing invalidates the cursor through the backing array's ordinary iterator rules. Replacing an existing value preserves the cursor and order.
Effects: allocates
Runtime behavior: available everywhere; synchronous
Examples
Create a map cursor
let routes = Map.new<String, u32>()
let iterator = routes.iterator()