R/shared_methods.R
length.r2r_hashtable.Rd
Returns the total number of keys in an hash table.
# S3 method for class 'r2r_hashtable' length(x)
an hashset or hashmap.
hashset
hashmap
an integer. Number of keys in the hash table (or elements in a set).
Valerio Gherardi
s <- hashset() insert(s, "foo") length(s) #> [1] 1