Returns the key comparison function of an hash table (hashset or hashmap).

compare_fn(x)

# S3 method for r2r_hashtable
compare_fn(x)

Arguments

x

an hashset or hashmap.

Value

a function.

Author

Valerio Gherardi

Examples

s <- hashset() compare_fn(s)
#> function (x, y) #> compare_fn(key_preproc_fn(x), key_preproc_fn(y)) #> <bytecode: 0x55a10d88e100> #> <environment: 0x55a10d891718>