summary refs log tree commit diff stats
path: root/lib/pure/collections/tables.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #12798 [backport]Araq2019-12-041-0/+1
|
* Discussion both in (#12678)c-blake2019-11-201-31/+41
| | | | | | | | | | | https://github.com/nim-lang/Nim/pull/12600 and in https://forum.nim-lang.org/t/5499 indicates that everyone is happy/happier with ``pop``. This just renames the brand new ``take``s to ``pop`` and installs inline aliases/wrappers to preserve ``Table.take`` and ``TableRef.take``. Update apis.rst to try to maintain consistency of remove-and-return procs.
* fix #12519: introduce OrderedTable.take, CountTable.del, CountTable.take ↵Miran2019-11-081-4/+148
| | | | | | | | | | | | (#12600) * add OrderedTable.take * add CountTable.del and CountTable.take * add .since pragma to the introduced public procs * add changelog entry [ci skip]
* Fix word wrappingJjp1372019-10-221-1/+2
|
* Fix many broken linksJjp1372019-10-221-2/+2
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* use system.move instead of system.shallowCopy if the GC mode requires itAndreas Rumpf2019-10-041-1/+1
|
* fix #12200, cannot 'inc' CountTable by a negative value (#12208)Miran2019-09-171-2/+5
| | | | | | * fix #12200, cannot 'inc' CountTable by a negative value * use Positive
* fixes a subtle tables.nim regressionAraq2019-09-051-32/+32
|
* minor style changesAraq2019-07-101-2/+2
|
* make more parts of the stdlib compile with --styleCheck:errorAraq2019-07-101-1/+1
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-3/+3
| | | | --styleCheck:error
* [other] prettify collections (#11695)Miran2019-07-091-27/+35
|
* [bugfix] fix OrderedTable iterators (#11562)Miran2019-06-221-5/+7
|
* [bugfix] fix OrderedTable default initialization (#11549)Miran2019-06-201-2/+0
|
* make fullpaths the default in error messages and stack traces for mor… ↵Andreas Rumpf2019-06-051-1/+1
| | | | | | | | | | | | (#11385) * make fullpaths the default in error messages and stack traces for more convenient development * split up -d:release into -d:release and -d:danger flags * workaround a Nim config parser bug * fixes an old nim config parser bug * make megatest green again * make nimpretty tests work again * make nimsuggest green
* Workaround "move not found" exception in JS when using tables. (#11256)Dominik Picheta2019-05-151-1/+4
|
* CountTable: check for usages after sorting (#11189)Miran2019-05-081-1/+10
|
* tables: check for mutation when iterating (#11160)Miran2019-05-041-42/+127
|
* introduce temporary <//> for 'owned' to get this compile with 0.19 (#11145)Andreas Rumpf2019-05-021-8/+8
| | | | | | | | * introduce temporary <//> for 'owned' to get this compile with 0.19 * make newTable[string, owned Node]() compile (but it crashes) * make sink/owned parameters consistent * make actiontable test compile again * VM: support sytem.move; makes tests green
* Initialized collections (#11094)Miran2019-04-291-55/+204
| | | | | | | | | | | | * tables: initialized by default * sets: initialized by default * DRY: extract shared functionality * add a changelog entry * fix errors * don't test include files * make it work for sharedtables * fix discovered bugs * add exhaustive tests
* tables: fix link (#11090) [ci skip]Jjp1372019-04-231-1/+1
|
* Improve tables docs for del/take (#11030)Christopher Dunn2019-04-171-1/+5
| | | | * Continuation of b40a637f * https://forum.nim-lang.org/t/4789
* faster CountTable sort(), optional SortOrder (#11010)Andy Davidoff2019-04-161-27/+30
| | | | | | | | | * use existing sort for CountTable, and add SortOrder options to CountTable, OrderedTable sort(s) * add some tests, runnables, etc. * fix runnable imports
* documentation: remove author field [ci skip]narimiran2019-01-171-2/+0
|
* better docs: tablesnarimiran2019-01-161-622/+2030
|
* Fixes #10065 (#10260)Arne Döring2019-01-141-54/+43
| | | | CountTable now returns 0 instead of 'key not found' for get requests.
* removes deprecated T/P typesAraq2018-11-161-7/+1
|
* better docs for `tables` module (#9221)Miran2018-10-091-176/+190
| | | | | | * better docs for `tables` module * lower case for the first sentence in docs
* make more tests greenAndreas Rumpf2018-08-141-1/+1
|
* Clarify the docs for tables.del (#8134)Yuriy Glukhov2018-06-271-4/+6
|
* Merge pull request #7075 from lcrees/get_defaultDominik Picheta2018-03-291-13/+80
|\ | | | | Add default argument to tables.getOrDefault
| * Add default argument to 'tables.getOrDefault'lcrees2018-01-131-13/+80
| |
* | Fix toCountTable and newCountTablekonqoro2018-02-211-21/+20
|/
* Tables: toCountTable: Update docs.Konstantin Molchanov2017-12-271-1/+2
|
* Tables: make `toCountTable` actually count the elements of the input openArray.Konstantin Molchanov2017-12-271-1/+1
|
* Fix counttable smallest loop start (#6917)GULPF2017-12-151-3/+3
| | | | | | * Fix counttable smallest * Fix counttable smallest loop start
* Improved collection-to-string behavior (#6825)Fabian Keller2017-12-141-2/+2
|
* Fix counttable smallest (#6912)GULPF2017-12-131-2/+7
|
* improve the docs for tables.addAraq2017-12-121-0/+4
|
* Fix #4366 (#6290)Daniil Yarancev2017-09-021-1/+1
|
* tables.nim: use proper spacingAndreas Rumpf2017-08-311-5/+5
|
* fixes #6250 (#6251)David Krause2017-08-171-1/+15
|
* fix orderedtable enlarge proc. (#5937)Parashurama2017-06-051-2/+5
| | | This fixes issue #5917
* Implement 'take' for Table and TableRef (#5773)Ruslan Mustakov2017-05-041-11/+30
|
* Minor: spelling correction in tables.nim (#5727)Zach Smith2017-04-191-2/+2
|
* fixes #5487 (#5494)David Krause2017-03-071-15/+49
|
* Fix for #5482, let OrderedTable accept multiple keys (#5485)David Krause2017-03-051-1/+15
|
* reenabled clear test, made clear working (#5323)Arne Döring2017-02-021-2/+5
|
* Fix description of CountTable's smallest procPaweł Świątkowski2016-12-111-2/+2
|
* Corrected test case for #5057.Yuriy Glukhov2016-11-271-3/+3
|