length.r2r_hashtable: Size of hash tables

View source: R/shared_methods.R

length.r2r_hashtableR Documentation

Size of hash tables

Description

Returns the total number of keys in an hash table.

Usage

## 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

s <- hashset()
insert(s, "foo")
length(s)

r2r documentation built on April 3, 2025, 10:57 p.m.