hashmap {datastructures}R Documentation

Create a new hashmap

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

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

Arguments

key.class

the primitive class type of the keys

Value

returns a new hashmap object

Examples

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

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

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


[Package datastructures version 0.2.8 Index]