nimTitle tables tables.html module std/tables 0 nim Table tables.html#Table object Table 209 nim TableRef tables.html#TableRef type TableRef 218 nim defaultInitialSize tables.html#defaultInitialSize const defaultInitialSize 224 nim initTable tables.html#initTable proc initTable[A, B](initialSize = defaultInitialSize): Table[A, B] 273 nim `[]=` tables.html#[]=,Table[A,B],A,sinkB proc `[]=`[A, B](t: var Table[A, B]; key: A; val: sink B) 288 nim toTable tables.html#toTable,openArray[] proc toTable[A, B](pairs: openArray[(A, B)]): Table[A, B] 304 nim `[]` tables.html#[],Table[A,B],A proc `[]`[A, B](t: Table[A, B]; key: A): B 320 nim `[]` tables.html#[],Table[A,B],A_2 proc `[]`[A, B](t: var Table[A, B]; key: A): var B 343 nim hasKey tables.html#hasKey,Table[A,B],A proc hasKey[A, B](t: Table[A, B]; key: A): bool 359 nim contains tables.html#contains,Table[A,B],A proc contains[A, B](t: Table[A, B]; key: A): bool 377 nim hasKeyOrPut tables.html#hasKeyOrPut,Table[A,B],A,B proc hasKeyOrPut[A, B](t: var Table[A, B]; key: A; val: B): bool 387 nim getOrDefault tables.html#getOrDefault,Table[A,B],A proc getOrDefault[A, B](t: Table[A, B]; key: A): B 407 nim getOrDefault tables.html#getOrDefault,Table[A,B],A,B proc getOrDefault[A, B](t: Table[A, B]; key: A; default: B): B 426 nim mgetOrPut tables.html#mgetOrPut,Table[A,B],A,B proc mgetOrPut[A, B](t: var Table[A, B]; key: A; val: B): var B 444 nim len tables.html#len,Table[A,B] proc len[A, B](t: Table[A, B]): int 482 nim add tables.html#add,Table[A,B],A,sinkB proc add[A, B](t: var Table[A, B]; key: A; val: sink B) 490 nim del tables.html#del,Table[A,B],A proc del[A, B](t: var Table[A, B]; key: A) 504 nim pop tables.html#pop,Table[A,B],A,B proc pop[A, B](t: var Table[A, B]; key: A; val: var B): bool 522 nim take tables.html#take,Table[A,B],A,B proc take[A, B](t: var Table[A, B]; key: A; val: var B): bool 553 nim clear tables.html#clear,Table[A,B] proc clear[A, B](t: var Table[A, B]) 558 nim `$` tables.html#$,Table[A,B] proc `$`[A, B](t: Table[A, B]): string 572 nim `==` tables.html#==,Table[A,B],Table[A,B] proc `==`[A, B](s, t: Table[A, B]): bool 577 nim indexBy tables.html#indexBy,A,proc(B) proc indexBy[A, B, C](collection: A; index: proc (x: B): C): Table[C, B] 588 nim withValue tables.html#withValue.t,Table[A,B],A,untyped,untyped template withValue[A, B](t: var Table[A, B]; key: A; value, body: untyped) 597 nim withValue tables.html#withValue.t,Table[A,B],A,untyped,untyped,untyped template withValue[A, B](t: var Table[A, B]; key: A; value, body1, body2: untyped) 631 nim pairs tables.html#pairs.i,Table[A,B] iterator pairs[A, B](t: Table[A, B]): (A, B) 673 nim mpairs tables.html#mpairs.i,Table[A,B] iterator mpairs[A, B](t: var Table[A, B]): (A, var B) 703 nim keys tables.html#keys.i,Table[A,B] iterator keys[A, B](t: Table[A, B]): lent A 725 nim values tables.html#values.i,Table[A,B] iterator values[A, B](t: Table[A, B]): lent B 746 nim mvalues tables.html#mvalues.i,Table[A,B] iterator mvalues[A, B](t: var Table[A, B]): var B 767 nim allValues tables.html#allValues.i,Table[A,B],A iterator allValues[A, B](t: Table[A, B]; key: A): B 789 nim newTable tables.html#newTable proc newTable[A, B](initialSize = defaultInitialSize): TableRef[A, B] 818 nim newTable tables.html#newTable,openArray[] proc newTable[A, B](pairs: openArray[(A, B)]): TableRef[A, B] 834 nim newTableFrom tables.html#newTableFrom,A,proc(B) proc newTableFrom[A, B, C](collection: A; index: proc (x: B): C): TableRef[C, B] 851 nim `[]` tables.html#[],TableRef[A,B],A proc `[]`[A, B](t: TableRef[A, B]; key: A): var B 859 nim `[]=` tables.html#[]=,TableRef[A,B],A,sinkB proc `[]=`[A, B](t: TableRef[A, B]; key: A; val: sink B) 883 nim hasKey tables.html#hasKey,TableRef[A,B],A proc hasKey[A, B](t: TableRef[A, B]; key: A): bool 899 nim contains tables.html#contains,TableRef[A,B],A proc contains[A, B](t: TableRef[A, B]; key: A): bool 917 nim hasKeyOrPut tables.html#hasKeyOrPut,TableRef[A,B],A,B proc hasKeyOrPut[A, B](t: TableRef[A, B]; key: A; val: B): bool 927 nim getOrDefault tables.html#getOrDefault,TableRef[A,B],A proc getOrDefault[A, B](t: TableRef[A, B]; key: A): B 947 nim getOrDefault tables.html#getOrDefault,TableRef[A,B],A,B proc getOrDefault[A, B](t: TableRef[A, B]; key: A; default: B): B 966 nim mgetOrPut tables.html#mgetOrPut,TableRef[A,B],A,B proc mgetOrPut[A, B](t: TableRef[A, B]; key: A; val: B): var B 984 nim len tables.html#len,TableRef[A,B] proc len[A, B](t: TableRef[A, B]): int 1020 nim add tables.html#add,TableRef[A,B],A,sinkB proc add[A, B](t: TableRef[A, B]; key: A; val: sink B) 1028 nim del tables.html#del,TableRef[A,B],A proc del[A, B](t: TableRef[A, B]; key: A) 1038 nim pop tables.html#pop,TableRef[A,B],A,B proc pop[A, B](t: TableRef[A, B]; key: A; val: var B): bool 1056 nim take tables.html#take,TableRef[A,B],A,B proc take[A, B](t: TableRef[A, B]; key: A; val: var B): bool 1082 nim clear tables.html#clear,TableRef[A,B] proc clear[A, B](t: TableRef[A, B]) 1087 nim `$` tables.html#$,TableRef[A,B] proc `$`[A, B](t: TableRef[A, B]): string 1101 nim `==` tables.html#==,TableRef[A,B],TableRef[A,B] proc `==`[A, B](s, t: TableRef[A, B]): bool 1106 nim pairs tables.html#pairs.i,TableRef[A,B] iterator pairs[A, B](t: TableRef[A, B]): (A, B) 1122 nim mpairs tables.html#mpairs.i,TableRef[A,B] iterator mpairs[A, B](t: TableRef[A, B]): (A, var B) 1152 nim keys tables.html#keys.i,TableRef[A,B] iterator keys[A, B](t: TableRef[A, B]): lent A 1174 nim values tables.html#values.i,TableRef[A,B] iterator values[A, B](t: TableRef[A, B]): lent B 1195 nim mvalues tables.html#mvalues.i,TableRef[A,B] iterator mvalues[A, B](t: TableRef[A, B]): var B 1216 nim OrderedTable tables.html#OrderedTable object OrderedTable 1252 nim OrderedTableRef tables.html#OrderedTableRef type OrderedTableRef 1259 nim initOrderedTable tables.html#initOrderedTable proc initOrderedTable[A, B](initialSize = defaultInitialSize): OrderedTable[A, B] 1314 nim `[]=` tables.html#[]=,OrderedTable[A,B],A,sinkB proc `[]=`[A, B](t: var OrderedTable[A, B]; key: A; val: sink B) 1330 nim toOrderedTable tables.html#toOrderedTable,openArray[] proc toOrderedTable[A, B](pairs: openArray[(A, B)]): OrderedTable[A, B] 1346 nim `[]` tables.html#[],OrderedTable[A,B],A proc `[]`[A, B](t: OrderedTable[A, B]; key: A): B 1363 nim `[]` tables.html#[],OrderedTable[A,B],A_2 proc `[]`[A, B](t: var OrderedTable[A, B]; key: A): var B 1387 nim hasKey tables.html#hasKey,OrderedTable[A,B],A proc hasKey[A, B](t: OrderedTable[A, B]; key: A): bool 1403 nim contains tables.html#contains,OrderedTable[A,B],A proc contains[A, B](t: OrderedTable[A, B]; key: A): bool 1422 nim hasKeyOrPut tables.html#hasKeyOrPut,OrderedTable[A,B],A,B proc hasKeyOrPut[A, B](t: var OrderedTable[A, B]; key: A; val: B): bool 1432 nim getOrDefault tables.html#getOrDefault,OrderedTable[A,B],A proc getOrDefault[A, B](t: OrderedTable[A, B]; key: A): B 1452 nim getOrDefault tables.html#getOrDefault,OrderedTable[A,B],A,B proc getOrDefault[A, B](t: OrderedTable[A, B]; key: A; default: B): B 1471 nim mgetOrPut tables.html#mgetOrPut,OrderedTable[A,B],A,B proc mgetOrPut[A, B](t: var OrderedTable[A, B]; key: A; val: B): var B 1489 nim len tables.html#len,OrderedTable[A,B] proc len[A, B](t: OrderedTable[A, B]): int 1509 nim add tables.html#add,OrderedTable[A,B],A,sinkB proc add[A, B](t: var OrderedTable[A, B]; key: A; val: sink B) 1517 nim del tables.html#del,OrderedTable[A,B],A proc del[A, B](t: var OrderedTable[A, B]; key: A) 1527 nim pop tables.html#pop,OrderedTable[A,B],A,B proc pop[A, B](t: var OrderedTable[A, B]; key: A; val: var B): bool 1560 nim clear tables.html#clear,OrderedTable[A,B] proc clear[A, B](t: var OrderedTable[A, B]) 1590 nim sort tables.html#sort,OrderedTable[A,B],proc(,) proc sort[A, B](t: var OrderedTable[A, B]; cmp: proc (x, y: (A, B)): int;\n order = SortOrder.Ascending) 1606 nim `$` tables.html#$,OrderedTable[A,B] proc `$`[A, B](t: OrderedTable[A, B]): string 1665 nim `==` tables.html#==,OrderedTable[A,B],OrderedTable[A,B] proc `==`[A, B](s, t: OrderedTable[A, B]): bool 1670 nim pairs tables.html#pairs.i,OrderedTable[A,B] iterator pairs[A, B](t: OrderedTable[A, B]): (A, B) 1697 nim mpairs tables.html#mpairs.i,OrderedTable[A,B] iterator mpairs[A, B](t: var OrderedTable[A, B]): (A, var B) 1728 nim keys tables.html#keys.i,OrderedTable[A,B] iterator keys[A, B](t: OrderedTable[A, B]): lent A 1750 nim values tables.html#values.i,OrderedTable[A,B] iterator values[A, B](t: OrderedTable[A, B]): lent B 1771 nim mvalues tables.html#mvalues.i,OrderedTable[A,B] iterator mvalues[A, B](t: var OrderedTable[A, B]): var B 1791 nim newOrderedTable tables.html#newOrderedTable proc newOrderedTable[A, B](initialSize = defaultInitialSize): OrderedTableRef[A, B] 1818 nim newOrderedTable tables.html#newOrderedTable,openArray[] proc newOrderedTable[A, B](pairs: openArray[(A, B)]): OrderedTableRef[A, B] 1834 nim `[]` tables.html#[],OrderedTableRef[A,B],A proc `[]`[A, B](t: OrderedTableRef[A, B]; key: A): var B 1853 nim `[]=` tables.html#[]=,OrderedTableRef[A,B],A,sinkB proc `[]=`[A, B](t: OrderedTableRef[A, B]; key: A; val: sink B) 1876 nim hasKey tables.html#hasKey,OrderedTableRef[A,B],A proc hasKey[A, B](t: OrderedTableRef[A, B]; key: A): bool 1892 nim contains tables.html#contains,OrderedTableRef[A,B],A proc contains[A, B](t: OrderedTableRef[A, B]; key: A): bool 1910 nim hasKeyOrPut tables.html#hasKeyOrPut,OrderedTableRef[A,B],A,B proc hasKeyOrPut[A, B](t: OrderedTableRef[A, B]; key: A; val: B): bool 1920 nim getOrDefault tables.html#getOrDefault,OrderedTableRef[A,B],A proc getOrDefault[A, B](t: OrderedTableRef[A, B]; key: A): B 1940 nim getOrDefault tables.html#getOrDefault,OrderedTableRef[A,B],A,B proc getOrDefault[A, B](t: OrderedTableRef[A, B]; key: A; default: B): B 1959 nim mgetOrPut tables.html#mgetOrPut,OrderedTableRef[A,B],A,B proc mgetOrPut[A, B](t: OrderedTableRef[A, B]; key: A; val: B): var B 1977 nim len tables.html#len,OrderedTableRef[A,B] proc len[A, B](t: OrderedTableRef[A, B]): int 1997 nim add tables.html#add,OrderedTableRef[A,B],A,sinkB proc add[A, B](t: OrderedTableRef[A, B]; key: A; val: sink B) 2005 nim del tables.html#del,OrderedTableRef[A,B],A proc del[A, B](t: OrderedTableRef[A, B]; key: A) 2015 nim pop tables.html#pop,OrderedTableRef[A,B],A,B proc pop[A, B](t: OrderedTableRef[A, B]; key: A; val: var B): bool 2029 nim clear tables.html#clear,OrderedTableRef[A,B] proc clear[A, B](t: OrderedTableRef[A, B]) 2052 nim sort tables.html#sort,OrderedTableRef[A,B],proc(,) proc sort[A, B](t: OrderedTableRef[A, B]; cmp: proc (x, y: (A, B)): int;\n order = SortOrder.Ascending) 2065 nim `$` tables.html#$,OrderedTableRef[A,B] proc `$`[A, B](t: OrderedTableRef[A, B]): string 2086 nim `==` tables.html#==,OrderedTableRef[A,B],OrderedTableRef[A,B] proc `==`[A, B](s, t: OrderedTableRef[A, B]): bool 2091 nim pairs tables.html#pairs.i,OrderedTableRef[A,B] iterator pairs[A, B](t: OrderedTableRef[A, B]): (A, B) 2107 nim mpairs tables.html#mpairs.i,OrderedTableRef[A,B] iterator mpairs[A, B](t: OrderedTableRef[A, B]): (A, var B) 2138 nim keys tables.html#keys.i,OrderedTableRef[A,B] iterator keys[A, B](t: OrderedTableRef[A, B]): lent A 2160 nim values tables.html#values.i,OrderedTableRef[A,B] iterator values[A, B](t: OrderedTableRef[A, B]): lent B 2181 nim mvalues tables.html#mvalues.i,OrderedTableRef[A,B] iterator mvalues[A, B](t: OrderedTableRef[A, B]): var B 2201 nim CountTable tables.html#CountTable object CountTable 2234 nim CountTableRef tables.html#CountTableRef type CountTableRef 2242 nim inc tables.html#inc,CountTable[A],A,int proc inc[A](t: var CountTable[A]; key: A; val = 1) 2278 nim initCountTable tables.html#initCountTable proc initCountTable[A](initialSize = defaultInitialSize): CountTable[A] 2282 nim toCountTable tables.html#toCountTable,openArray[A] proc toCountTable[A](keys: openArray[A]): CountTable[A] 2294 nim `[]` tables.html#[],CountTable[A],A proc `[]`[A](t: CountTable[A]; key: A): int 2300 nim `[]=` tables.html#[]=,CountTable[A],A,int proc `[]=`[A](t: var CountTable[A]; key: A; val: int) 2318 nim len tables.html#len,CountTable[A] proc len[A](t: CountTable[A]): int 2354 nim smallest tables.html#smallest,CountTable[A] proc smallest[A](t: CountTable[A]): tuple[key: A, val: int] 2358 nim largest tables.html#largest,CountTable[A] proc largest[A](t: CountTable[A]): tuple[key: A, val: int] 2371 nim hasKey tables.html#hasKey,CountTable[A],A proc hasKey[A](t: CountTable[A]; key: A): bool 2383 nim contains tables.html#contains,CountTable[A],A proc contains[A](t: CountTable[A]; key: A): bool 2395 nim getOrDefault tables.html#getOrDefault,CountTable[A],A,int proc getOrDefault[A](t: CountTable[A]; key: A; default: int = 0): int 2400 nim del tables.html#del,CountTable[A],A proc del[A](t: var CountTable[A]; key: A) 2410 nim pop tables.html#pop,CountTable[A],A,int proc pop[A](t: var CountTable[A]; key: A; val: var int): bool 2427 nim clear tables.html#clear,CountTable[A] proc clear[A](t: var CountTable[A]) 2451 nim sort tables.html#sort,CountTable[A] proc sort[A](t: var CountTable[A]; order = SortOrder.Descending) 2463 nim merge tables.html#merge,CountTable[A],CountTable[A] proc merge[A](s: var CountTable[A]; t: CountTable[A]) 2484 nim `$` tables.html#$,CountTable[A] proc `$`[A](t: CountTable[A]): string 2510 nim `==` tables.html#==,CountTable[A],CountTable[A] proc `==`[A](s, t: CountTable[A]): bool 2515 nim pairs tables.html#pairs.i,CountTable[A] iterator pairs[A](t: CountTable[A]): (A, int) 2521 nim mpairs tables.html#mpairs.i,CountTable[A] iterator mpairs[A](t: var CountTable[A]): (A, var int) 2554 nim keys tables.html#keys.i,CountTable[A] iterator keys[A](t: CountTable[A]): lent A 2573 nim values tables.html#values.i,CountTable[A] iterator values[A](t: CountTable[A]): int 2591 nim mvalues tables.html#mvalues.i,CountTable[A] iterator mvalues[A](t: var CountTable[A]): var int 2609 nim inc tables.html#inc,CountTableRef[A],A,int proc inc[A](t: CountTableRef[A]; key: A; val = 1) 2638 nim newCountTable tables.html#newCountTable proc newCountTable[A](initialSize = defaultInitialSize): CountTableRef[A] 2640 nim newCountTable tables.html#newCountTable,openArray[A] proc newCountTable[A](keys: openArray[A]): CountTableRef[A] 2652 nim `[]` tables.html#[],CountTableRef[A],A proc `[]`[A](t: CountTableRef[A]; key: A): int 2659 nim `[]=` tables.html#[]=,CountTableRef[A],A,int proc `[]=`[A](t: CountTableRef[A]; key: A; val: int) 2673 nim smallest tables.html#smallest,CountTableRef[A] proc smallest[A](t: CountTableRef[A]): tuple[key: A, val: int] 2694 nim largest tables.html#largest,CountTableRef[A] proc largest[A](t: CountTableRef[A]): tuple[key: A, val: int] 2701 nim hasKey tables.html#hasKey,CountTableRef[A],A proc hasKey[A](t: CountTableRef[A]; key: A): bool 2708 nim contains tables.html#contains,CountTableRef[A],A proc contains[A](t: CountTableRef[A]; key: A): bool 2719 nim getOrDefault tables.html#getOrDefault,CountTableRef[A],A,int proc getOrDefault[A](t: CountTableRef[A]; key: A; default: int): int 2724 nim len tables.html#len,CountTableRef[A] proc len[A](t: CountTableRef[A]): int 2734 nim del tables.html#del,CountTableRef[A],A proc del[A](t: CountTableRef[A]; key: A) 2738 nim pop tables.html#pop,CountTableRef[A],A,int proc pop[A](t: CountTableRef[A]; key: A; val: var int): bool 2746 nim clear tables.html#clear,CountTableRef[A] proc clear[A](t: CountTableRef[A]) 2757 nim sort tables.html#sort,CountTableRef[A] proc sort[A](t: CountTableRef[A]; order = SortOrder.Descending) 2765 nim merge tables.html#merge,CountTableRef[A],CountTableRef[A] proc merge[A](s, t: CountTableRef[A]) 2776 nim `$` tables.html#$,CountTableRef[A] proc `$`[A](t: CountTableRef[A]): string 2787 nim `==` tables.html#==,CountTableRef[A],CountTableRef[A] proc `==`[A](s, t: CountTableRef[A]): bool 2792 nim pairs tables.html#pairs.i,CountTableRef[A] iterator pairs[A](t: CountTableRef[A]): (A, int) 2801 nim mpairs tables.html#mpairs.i,CountTableRef[A] iterator mpairs[A](t: CountTableRef[A]): (A, var int) 2834 nim keys tables.html#keys.i,CountTableRef[A] iterator keys[A](t: CountTableRef[A]): A 2853 nim values tables.html#values.i,CountTableRef[A] iterator values[A](t: CountTableRef[A]): int 2871 nim mvalues tables.html#mvalues.i,CountTableRef[A] iterator mvalues[A](t: CountTableRef[A]): var int 2889 idx hash table tables.html#hash-table_1 Module tables 0 idx dictionary tables.html#dictionary_1 Module tables 0 heading Basic usage tables.html#basic-usage Basic usage 0 heading Table tables.html#basic-usage-table Table 0 heading OrderedTable tables.html#basic-usage-orderedtable OrderedTable 0 heading CountTable tables.html#basic-usage-counttable CountTable 0 heading Hashing tables.html#basic-usage-hashing Hashing 0 heading See also tables.html#see-also See also 0 nimgrp contains tables.html#contains-procs-all proc 377 nimgrp newcounttable tables.html#newCountTable-procs-all proc 2640 nimgrp $ tables.html#$-procs-all proc 572 nimgrp neworderedtable tables.html#newOrderedTable-procs-all proc 1818 nimgrp del tables.html#del-procs-all proc 504 nimgrp []= tables.html#[]=-procs-all proc 288 nimgrp getordefault tables.html#getOrDefault-procs-all proc 407 nimgrp len tables.html#len-procs-all proc 482 nimgrp newtable tables.html#newTable-procs-all proc 818 nimgrp smallest tables.html#smallest-procs-all proc 2358 nimgrp add tables.html#add-procs-all proc 490 nimgrp haskey tables.html#hasKey-procs-all proc 359 nimgrp haskeyorput tables.html#hasKeyOrPut-procs-all proc 387 nimgrp largest tables.html#largest-procs-all proc 2371 nimgrp inc tables.html#inc-procs-all proc 2278 nimgrp merge tables.html#merge-procs-all proc 2484 nimgrp clear tables.html#clear-procs-all proc 558 nimgrp sort tables.html#sort-procs-all proc 1606 nimgrp take tables.html#take-procs-all proc 553 nimgrp mgetorput tables.html#mgetOrPut-procs-all proc 444 nimgrp [] tables.html#[]-procs-all proc 320 nimgrp == tables.html#==-procs-all proc 577 nimgrp pop tables.html#pop-procs-all proc 522 nimgrp values tables.html#values-iterators-all iterator 746 nimgrp mpairs tables.html#mpairs-iterators-all iterator 703 nimgrp pairs tables.html#pairs-iterators-all iterator 673 nimgrp mvalues tables.html#mvalues-iterators-all iterator 767 nimgrp keys tables.html#keys-iterators-all iterator 725 nimgrp withvalue tables.html#withValue-templates-all template 597