dictionary.Rd
Objects of class "dictionary" behave similar to dictionaries. They can contain any other kind of objects, but like with Python dictionaries, only scalar indices are allowed. Unlike with Python dictionaries, numeric indices can be used well as character indices.
dictionary(...)
# S3 method for dictionary
[(x, i)
# S3 method for dictionary
[(x, i) <- value
# S3 method for dictionary
print(x, force = FALSE, ...)
Arbitrary objects. Should be tagged, yet currently name tags are not yet checked for.
A dictionary object
A scalar integer or character string
An arbitrary object
A logical scalar, if TRUE, each element of the dictionary is printed, if FALSE, just a brief summary is printed.
[
: Get an element from a dictionary
`[`(dictionary) <- value
: Set an element in a dictionary
print(dictionary)
: Print a dictionary
dictionary()
: A dictionary constructor