delete: Delete keys or key/value pairs from an hash table.

Description Usage Arguments Value Author(s) Examples

View source: R/generics.R

Description

These generics are used for deleting a single key or key/value pair from an hashset or hashmap, respectively.

Usage

1
2
3
4
5
6
7
delete(x, key)

## S3 method for class 'r2r_hashmap'
delete(x, key)

## S3 method for class 'r2r_hashset'
delete(x, key)

Arguments

x

an hashset or hashmap.

key

an arbitrary R object. Key to be deleted from the hash table.

Value

NULL, invisibly.

Author(s)

Valerio Gherardi

Examples

1
2
3
s <- hashset(1, 2, 3)
delete(s, 3)
s[[3]]

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