multimap: Create a new 'multimap'

Description Usage Arguments Value Examples

View source: R/ds_map_multimap.R

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

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

Arguments

key.class

the primitive class type of the keys

Value

returns a new multimap object

Examples

1
2
3
4
5
6
7
8
 # 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")

dirmeier/datastructures documentation built on Aug. 9, 2020, 2:55 a.m.