Learn R Programming

r2r (version 0.1.1)

length.r2r_hashtable: Size of hash tables

Description

Returns the total number of keys in an hash table.

Usage

# S3 method for r2r_hashtable
length(x)

Arguments

x

an hashset or hashmap.

Value

an integer. Number of keys in the hash table (or elements in a set).

Examples

Run this code
# NOT RUN {
s <- hashset()
insert(s, "foo")
length(s)
# }

Run the code above in your browser using DataLab