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)

Arguments

x

an hashset or hashmap.

Value

a list. Registered keys in the hash table x.

Author

Valerio Gherardi

Examples

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