Displaying 1 result from an estimated 1 matches for "hget".
Did you mean:
get
2008 May 10
2
Hashes as S4 Classes, or: How to separate environments
...etGeneric("hput", function(object, key, value) standardGeneric("hput"))
setMethod("hput", signature(object="Dict", key="character", value="ANY"),
function(object, key, value) assign(key, value, envir=object at hash)
)
setGeneric("hget", function(object, key, ...) standardGeneric("hget"))
setMethod("hget", signature(object="Dict", key="character"),
function(object, key) {
if (exists(key, envir=object at hash, inherits = FALSE)) {
get(key, envir=object at hash)...