Base class for the dictionary backed by a linked list.
public abstract class base hash set[readonly value element type]
namespace parameters
protected class hash cell[readonly value element type]
protected element type the value
protected integer the hash
protected var hash cell[element type] or null next
Wrapper of an array that implements on-demand resizing and copy-on-write semantics. The same set_state can be shared by multiple instances of base_hash_sets.
protected class set state[readonly value element type]
import idealmachineelementsarray
Specifies whether this instance of set_state is writable. A single non-writable copy can be shared among multiple instances of base_hash_set.
var boolean writable
Specifies how many elements are stored in this set_state. The size is less or equal to the_buckets.size.
var nonnegative size
Construct a dictionary state with an array of specified size.
overload set state(nonnegative initial size)
Construct a dictionary state with a table of default size.
overload set state()
protected void clear()
Make sure the array is of at least the specified size.
void reserve(nonnegative reserve size)
protected set state[element type] copy()
protected equivalence with hash[element type] equivalence
protected var set state[element type] state
The number of elements in the collection.
implement nonnegative size
Specifies whether the collection has zero elements.
implement boolean is empty
Specifies whether the collection has more than zero elements. Shortcut for !is_empty.
implement boolean is not empty
Enumerates elements in some collection-defined order. This method returns a snapshot of the collection state, so subsequent mutations of the collection do not cause changes in the returned list.
implement immutable list[element type] elements()
implement immutable set[element type] frozen copy()