bimap: Create a new 'bimap'

Description Usage Arguments Value

View source: R/ds_map_bimap.R

Description

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

f: keys -> values,

and

f: values -> keys.

Usage

1
2
bimap(key.class = c("character", "numeric", "integer"),
  value.class = c("character", "numeric", "integer"))

Arguments

key.class

the primitive class type of the keys

value.class

the primitive class type of the values

Value

returns a new bimap object


datastructures documentation built on Jan. 22, 2018, 1:04 a.m.