Hash.remove

Returns an updated hash with a key value removed from the hash.

class Hash(K, V)
pure nothrow
remove
(
in K key
)

Examples

immutable data = ["foo": 1];
immutable subject = new immutable(Hash!(string, int))(data);
auto result = subject.remove("foo");
assert(result["foo"].isNull);

Meta