Creates a dictionary variable
Aliases:
std::map<keyType, valueType> myMap = { {key1, value1}, {key2, value2}, // Add more key-value pairs here};
Dictionary<Key, Value> myDict = new Dictionary<Key, Value>();
Map<KeyType, ValueType> myMap = { key1: value1, key2: value2};
var mapName = map[keyType]valueType{ key1: value1, key2: value2}
let myMap = Map.fromList [(key, value)] -- Add more key-value pairs here
Map<Key, Value> myMap = new HashMap<>();myMap.put(key, value);
let myObject = { 'key1': 'value1', 'key2': 'value2'};
var myMap = mapOf( 'key1' to 'value1', 'key2' to 'value2', // Add more key-value pairs here)
my %myHash = (key => value);
myMap = [key => value];
myHashTable = @{ key1 = value1 key2 = value2 # Add more key-value pairs here}
myDict = { 'key1': value1, 'key2': value2}
my_hash = { key1: value1, key2: value2, # Add more key-value pairs here}
use std::collections::HashMap; let myMap = HashMap::new();
val myMap = Map(key -> value)
# Create an associative array (map):declare -A myMapmyMap[key1]=value1myMap[key2]=value2
var myDictionary = [ 'key1': 'value1', 'key2': 'value2'];
let myMap: { [key: string]: type } = { 'key1': 'value1', 'key2': 'value2', // Add more key-value pairs here};