StackOverflow 文件 D Language 教程 關聯陣列 新增鍵值對 新增鍵值對 Created: November-22, 2018 int[string] aa = ["x": 5, "y": 6]; // The value can be set by its key: aa["x"] = 7; assert(aa["x"] == 7); // if the key does not exist will be added aa["z"] = 8; assert(aa["z"] == 8); 刪除鍵值對字面