This function is used to list all values associated to keys in an hashmap. Implemented as a generic, but currently only the hashmap method is defined.

values(x)

# S3 method for r2r_hashmap
values(x)

Arguments

x

an hashset or hashmap.

Value

a list. Values associated to keys in the hash map x.

Author

Valerio Gherardi

Examples

m <- hashmap(list("a", 1), list("b", 2)) values(m)
#> [[1]] #> [1] 1 #> #> [[2]] #> [1] 2 #>