R/generics.R
, R/hashmap.R
, R/hashset.R
delete.Rd
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)
NULL
, invisibly.
s <- hashset(1, 2, 3)
delete(s, 3)
s[[3]]
#> [1] FALSE