SplitScript reference / Map<K, V> / new
Map<K, V>.new
Function
Map.new<A, B>() -> Map<A, B> where A: Equatable
Creates an empty map.
The key and value types may be written explicitly or inferred from later operations.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Create a route lookup
let routes = Map.new<String, u32>()