src/cplib/collections/hashtable

  Source   Edit

Types

HashTable[K; V] = object
  values*: seq[Node[K, V]]
  len: int
  fill: int
  mask: int
  Source   Edit

Procs

proc `[]=`[K, V](self: var HashTable[K, V]; key: K; val: V)
  Source   Edit
proc `[]`[K, V](self: HashTable[K, V]; key: K): V
  Source   Edit
proc `[]`[K, V](self: var HashTable[K, V]; key: K): var V
  Source   Edit
proc clear[K, V](self: var HashTable[K, V])
  Source   Edit
proc contains[K, V](self: var HashTable[K, V]; key: K): bool
  Source   Edit
proc del[K, V](self: var HashTable[K, V]; key: K)
  Source   Edit
proc excl[K, V](self: var HashTable[K, V]; key: K)
  Source   Edit
proc hash[K, V](self: HashTable[K, V]): Hash
  Source   Edit
proc hasKey[K, V](self: var HashTable[K, V]; key: K): bool
  Source   Edit
proc incl[K, V](self: var HashTable[K, V]; val: (K, V))
  Source   Edit
proc initHashTable[K, V](): HashTable[K, V]
  Source   Edit
proc initHashTable[K, V](capacity: int): HashTable[K, V]
  Source   Edit
proc len[K, V](self: HashTable[K, V]): int
  Source   Edit

Iterators

iterator keys[K, V](self: HashTable[K, V]): K
  Source   Edit
iterator pairs[K, V](self: HashTable[K, V]): (K, V)
  Source   Edit
iterator values[K, V](self: HashTable[K, V]): V
  Source   Edit