Types
DefaultDict[K; V] = object table: Table[K, V] default: V
- Source Edit
Procs
proc `$`[K, V](d: DefaultDict[K, V]): string
- Source Edit
proc `==`[K, V](src, dst: DefaultDict[K, V]): bool
- Source Edit
proc `[]=`[K, V](d: var DefaultDict[K, V]; key: K; val: V)
- Source Edit
proc `[]`[K, V](d: DefaultDict[K, V]; key: K): V
- Source Edit
proc `[]`[K, V](d: var DefaultDict[K, V]; key: K): var V
- Source Edit
proc clear[K, V](d: var DefaultDict[K, V])
- Source Edit
proc contains[K, V](d: var DefaultDict[K, V]; key: K): bool
- Source Edit
proc del[K, V](d: var DefaultDict[K, V]; key: K)
- Source Edit
proc hash[K, V](d: DefaultDict[K, V]): Hash
- Source Edit
proc hasKey[K, V](d: DefaultDict[K, V]; key: K): bool
- Source Edit
proc initDefaultDict[K, V](default: V): DefaultDict[K, V]
- Source Edit
proc len[K, V](d: DefaultDict[K, V]): int
- Source Edit
proc pop[K, V](d: var DefaultDict; key: K; val: var V): bool
- Source Edit
proc take[K, V](d: var DefaultDict; key: K; val: var V): bool
- Source Edit
proc toDefaultDict[K, V](pairs: openArray[(K, V)]; default: V): DefaultDict[K, V]
- Source Edit
proc toDefaultDict[K, V](table: Table[K, V]; default: V): DefaultDict[K, V]
- Source Edit
Iterators
iterator keys[K, V](d: DefaultDict[K, V]): K
- Source Edit
iterator mpairs[K, V](d: var DefaultDict[K, V]): (K, var V)
- Source Edit
iterator pairs[K, V](d: DefaultDict[K, V]): (K, V)
- Source Edit
iterator values[K, V](d: DefaultDict[K, V]): V
- Source Edit