Optionalbudget: BudgetReturns the id of tuple, and stores the tuple under the next id when it is new.
Returns the id of tuple, or undefined when the table does not hold the tuple.
Returns the component of the tuple id at position, counted from 0.
Returns a copy of the components of the tuple id.
Interns tuples of one fixed arity. Each distinct tuple of 32-bit integers gets a dense id, counted from 0 in the order of first appearance, so two tuples are equal when their ids are equal.
Small tables fill ordinary arrays on demand. Larger tables keep components in a dense integer array. Both find tuples by open addressing, so
internandfindtake expected time linear in the arity andattakes constant time. Memory is linear in tuple count times arity.A table with a budget charges one
Resource.Cellsfor each new tuple.