Hash.rollBack

Return the previous state of the hash.

class Hash(K, V)
@nogc pure nothrow
rollBack
()

Examples

immutable data = ["foo": 1];
immutable subject = new immutable(Hash!(K, V))(data);
auto result = subject.insert("foo", 2).rollBack;
assert(result["foo"] == 1);

Meta