Delete removes the passed key if it exists.
// Prevent the key from being deleted if it was previously scheduled // to be deleted on transaction commit. tx.pendingRemove.Delete(key) // Add the key/value pair to the list to be written on transaction
// Remove the key from the list of pendings keys to be written on // transaction commit if needed. tx.pendingKeys.Delete(key) // Add the key to the list to be deleted on transaction commit.
// Ensure there are no panics when deleting keys from an empty treap. testTreap.Delete(key) // Ensure the number of keys iterated by ForEach on an empty treap is