DictMap: Python-like dictionary

Description Methods Examples

Description

With this dictionary one can attach data to a key. The limitation here is that the key must be an atomic character string. Functions get() and put() are provided to edit and get informations about the class.

Methods

Public methods


Method get()

Usage
DictMap$get(key)
Arguments
key

atomic character string


Method put()

Usage
DictMap$put(key, value)
Arguments
key

atomic character string

value

any value


Method items()

Usage
DictMap$items()

Method clone()

The objects of this class are cloneable with this method.

Usage
DictMap$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

1
2
3
cl <- DictMap$new()
cl$put ("key", "value")
cl$get("key") == "value"

LazerLambda/RolliNLP documentation built on Oct. 17, 2020, 8:54 p.m.