Documentation ¶
Overview ¶
Package hashtable creates a ValueHashtable data structure for the Item type
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValueHashtable ¶
type ValueHashtable struct {
// contains filtered or unexported fields
}
ValueHashtable the set of Items
func (*ValueHashtable) Get ¶
func (ht *ValueHashtable) Get(k Key) Value
Get item with key k from the hashtable
func (*ValueHashtable) Put ¶
func (ht *ValueHashtable) Put(k Key, v Value)
Put item with value v and key k into the hashtable
func (*ValueHashtable) Remove ¶
func (ht *ValueHashtable) Remove(k Key)
Remove item with key k from hashtable
func (*ValueHashtable) Size ¶
func (ht *ValueHashtable) Size() int
Size returns the number of the hashtable elements
Click to show internal directories.
Click to hide internal directories.