search for: hclear

Displaying 1 result from an estimated 1 matches for "hclear".

Did you mean: clear
2008 May 10
2
Hashes as S4 Classes, or: How to separate environments
...------------------ setClass("Dict", representation (hash = "environment"), prototype (hash = new.env(hash=T, parent = emptyenv())) ) setMethod("show", signature(object="Dict"), definition = function(object) ls(object at hash) ) setGeneric("hclear", function(object) standardGeneric("hclear")) setMethod("hclear", signature(object="Dict"), function(object) rm(list=ls(object at hash), envir=object at hash) ) setGeneric("hput", function(object, key, value) standardGeneric("hput")) setMe...