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

compare_fn(x)

# S3 method for class '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: 0x560233c8cd60>
#> <environment: 0x560233c90378>