Types
IndexError = object of CatchableError
KeyError = object of CatchableError
MapNode[K; V] = ref object case kind: NodeKind of Branch: nodes: array[branchWidth, MapNode[K, V]] of Leaf: keyHash: Hash key: K value: V
Consts
parazoaBits = 5
Procs
func add[K, V](m1: var Map[K, V]; m2: Map[K, V])
- Merges the second Map into the first one (This sets the var to a new Map -- the old Map is not mutated)
func add[T](s1: var Set[T]; s2: Set[T])
- Unites the second Set into the first one (This sets the var to a new Set -- the old Set is not mutated)
func add[T](v1: var Vec[T]; v2: Vec[T])
- Concatenates the second Vec into the first one (This sets the var to a new Vec -- the old Vec is not mutated)
func get[K, V](m: Map[K, V]; key: K): V
- Returns the value at key, or raises an exception if not found
func get[T](v: Vec[T]; key: Natural): T
- Returns the value at key, or raises an exception if out of bounds
func getOrDefault[K, V](m: Map[K, V]; key: K; defaultValue: V): V
- Returns the value at key, or defaultValue if not found
func getOrDefault[T](v: Vec[T]; key: Natural; defaultValue: T): T
- Returns the value at key, or defaultValue if not found