hashmap: Create a new 'hashmap'

Description Usage Arguments Value Examples

View source: R/ds_map_hashmap.R

Description

Instantiates a new hashmap object, i.e. an unordered collection of key-value pairs with mapping

f: keys -> values

, where only unique key-value pairs can be stored.

Usage

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

Arguments

key.class

the primitive class type of the keys

Value

returns a new hashmap object

Examples

1
2
3
4
5
6
7
8
 # creates a hashmap<character, SEXP>
 h <- hashmap()

 # creates a hashmap<integer, SEXP>
 h <- hashmap("integer")

 # creates a hashmap<numeric, SEXP>
 h <- hashmap("numeric")

datastructures documentation built on Aug. 10, 2020, 5:08 p.m.