D Language Remove key-value pairs


Example

Let's assume an associative array aa:

int[string] aa = ["x": 5, "y": 6];

Items can be removed by using .remove(), if key exits will be removed and remove returns true:

assert(aa.remove("x"));

if the given key does not exist remove does nothing and returns false:

assert(!aa.remove("z"));