Learn R Programming

datastructures (version 0.2.9)

multimap: Create a new multimap

Description

Instantiates a new '>multimap object, i.e. an unordered collection of key-value pairs with mapping $$f: keys -> values$$, where multiple identical key-value paors can be stored.

Usage

multimap(key.class = c("character", "numeric", "integer"))

Arguments

key.class

the primitive class type of the keys

Value

returns a new multimap object

Examples

Run this code
# NOT RUN {
 # creates a new multimap<character, SEXP>
 m <- multimap()

 # creates a new multimap<numeric, SEXP>
 m <- multimap("numeric")

 # creates a new multimap<character, SEXP>
 m <- multimap("integer")

# }

Run the code above in your browser using DataLab