powered by
Returns the total number of keys in an hash table.
# S3 method for r2r_hashtable length(x)
an hashset or hashmap.
hashset
hashmap
an integer. Number of keys in the hash table (or elements in a set).
# NOT RUN { s <- hashset() insert(s, "foo") length(s) # }
Run the code above in your browser using DataLab