length.r2r_hashtable: Size of hash tables

Description Usage Arguments Value Author(s) Examples

View source: R/shared_methods.R

Description

Returns the total number of keys in an hash table.

Usage

1
2
## S3 method for class '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).

Author(s)

Valerio Gherardi

Examples

1
2
3
s <- hashset()
insert(s, "foo")
length(s)

r2r documentation built on July 6, 2021, 5:12 p.m.