is.empty.Rd
is.empty tests to see if any key value pairs are assigned on a hash object.
is.empty
hash
is.empty(x)
hash object.
Returns TRUE if no key-value pairs are defined for the hash, FALSE otherwise.
TRUE
FALSE
logical.
Christopher Brown.
exists.
exists
h <- hash( a=1, b=2, c=3 ) is.empty(h) # FALSE #> [1] FALSE clear(h) is.empty(h) # TRUE #> [1] TRUE h <- hash() is.empty(h) # TRUE #> [1] TRUE