import std.stdio;
void main() {
string values[string];
values["hello"] = "world";
writeln("Before clearing:");
foreach (k,v; values) {
writefln("[%s] = %s", k, v);
}
foreach (k; values.keys) {
values.remove(k);
}
writeln("After clearing:");
foreach (k,v; values) {
writefln("[%s] = %s", k, v);
}
}
aW1wb3J0IHN0ZC5zdGRpbzsKCnZvaWQgbWFpbigpIHsKICAgIHN0cmluZyB2YWx1ZXNbc3RyaW5nXTsKCXZhbHVlc1siaGVsbG8iXSA9ICJ3b3JsZCI7CgoJd3JpdGVsbigiQmVmb3JlIGNsZWFyaW5nOiIpOwoJZm9yZWFjaCAoayx2OyB2YWx1ZXMpIHsKCQl3cml0ZWZsbigiWyVzXSA9ICVzIiwgaywgdik7Cgl9CgoJZm9yZWFjaCAoazsgdmFsdWVzLmtleXMpIHsKCQl2YWx1ZXMucmVtb3ZlKGspOwoJfQoKCXdyaXRlbG4oIkFmdGVyIGNsZWFyaW5nOiIpOwoJZm9yZWFjaCAoayx2OyB2YWx1ZXMpIHsKCQl3cml0ZWZsbigiWyVzXSA9ICVzIiwgaywgdik7Cgl9Cn0=