Learn R Programming

r2r (version 0.1.1)

values: List all values from an hash map

Description

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.

Usage

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.

Examples

Run this code
# NOT RUN {
m <- hashmap(list("a", 1), list("b", 2))
values(m)
# }

Run the code above in your browser using DataLab