Maps are initialized similarly to arrays, but include both keys and their corresponding values. ["example" => 1, "data" => 2]
initializes a map (Map<String, Int>
specifically) where the key "example"
stores the value 1
and "data"
stores the value 2.
Where a map type is expected (based on top-down inference), []
refers to an empty map.