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.
multimap(key.class = c("character", "numeric", "integer"))
key.class | the primitive class type of the keys |
---|
returns a new multimap
object
# 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")