These generics are used for deleting a single key or key/value pair from an hashset or hashmap, respectively.

delete(x, key)

# S3 method for class 'r2r_hashmap'
delete(x, key)

# S3 method for class 'r2r_hashset'
delete(x, key)

Arguments

x

an hashset or hashmap.

key

an arbitrary R object. Key to be deleted from the hash table.

Value

NULL, invisibly.

Author

Valerio Gherardi

Examples

s <- hashset(1, 2, 3)
delete(s, 3)
s[[3]]
#> [1] FALSE