ht

package
v0.0.0-...-736f5eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Implementation of a Hash Table with Separate Chaining with linked lists using Horner's hash function http://en.wikipedia.org/wiki/Hash_table#Separate_chaining_with_linked_lists

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashTable

type HashTable struct {
	Table    map[int]*list.List
	Size     int
	Capacity int
}

func New

func New(cap int) *HashTable

func (*HashTable) Del

func (ht *HashTable) Del(key string) error

func (*HashTable) ForEach

func (ht *HashTable) ForEach(f func(*item))

func (*HashTable) Get

func (ht *HashTable) Get(key string) (interface{}, error)

func (*HashTable) Put

func (ht *HashTable) Put(key, value string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL