These generics are used for listing all keys registered in an
hashset
or hashmap
, respectively.
keys(x)
# S3 method for class 'r2r_hashtable'
keys(x)
a list. Registered keys in the hash table x
.
s <- hashset(1, 2, 3)
keys(s)
#> [[1]]
#> [1] 1
#>
#> [[2]]
#> [1] 2
#>
#> [[3]]
#> [1] 3
#>