Gives every distinct value a dense id and returns the value of an id. The ids count from 0
in the order in which the values first appear. Two values are the same when the key
function gives them the same key.
Every operation takes constant expected time and one call of the key function. An interner
with a budget charges one Resource.Cells for each new value.
Gives every distinct value a dense id and returns the value of an id. The ids count from 0 in the order in which the values first appear. Two values are the same when the key function gives them the same key.
Every operation takes constant expected time and one call of the key function. An interner with a budget charges one
Resource.Cellsfor each new value.