R/del.R

# ---------------------------------------------------------------------
# del.R
#
# METHOD: del
#   Remove a list of keys.
# ---------------------------------------------------------------------
setGeneric( "del", function( x, hash ) { standardGeneric("del") } )

setMethod( 
	"del" ,
	signature( "ANY", "hash" ) ,
	function ( x, hash ) {
	  rm( list=make.keys(x), envir=hash@.Data )
	}
)

#  ALIAS delete
setGeneric( "delete", function( x, hash ) { standardGeneric("delete") } )
setMethod(
  "delete",
  signature( "ANY", "hash" ) ,
    function(x,hash) { del(x,hash) }
)

Try the hash package in your browser

Any scripts or data that you put into this service are public.

hash documentation built on Aug. 20, 2023, 1:08 a.m.