Dict valuesAccess and assignment operators for Dict objects.
# S3 method for Dict
[[(dic, key, add = FALSE) <- value# S3 method for Dict
[(dic, key) <- value
# S3 method for Dict
[[(dic, key)
# S3 method for Dict
[(dic, key, default = NULL)
Dict object
(character) the key
(logical) if TRUE, value is added if not yet in dict. If FALSE and value not yet in dict, an error is signaled.
the value associated with the key
the default value
updated Dict object
value at key
element found at key, or default if not found.
dic[key] <- value: If key not yet in dic, insert
value at key, otherwise raise an error.
dic[key]: If key in dic, return value, else
throw key-error.
dic[key, default=NULL]: Return the value for key if
key is in dic, else default.