Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | faster CountTable sort(), optional SortOrder (#11010) | Andy Davidoff | 2019-04-16 | 1 | -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] | narimiran | 2019-01-17 | 1 | -2/+0 |
| | |||||
* | better docs: tables | narimiran | 2019-01-16 | 1 | -622/+2030 |
| | |||||
* | Fixes #10065 (#10260) | Arne Döring | 2019-01-14 | 1 | -54/+43 |
| | | | | CountTable now returns 0 instead of 'key not found' for get requests. | ||||
* | removes deprecated T/P types | Araq | 2018-11-16 | 1 | -7/+1 |
| | |||||
* | better docs for `tables` module (#9221) | Miran | 2018-10-09 | 1 | -176/+190 |
| | | | | | | * better docs for `tables` module * lower case for the first sentence in docs | ||||
* | make more tests green | Andreas Rumpf | 2018-08-14 | 1 | -1/+1 |
| | |||||
* | Clarify the docs for tables.del (#8134) | Yuriy Glukhov | 2018-06-27 | 1 | -4/+6 |
| | |||||
* | Merge pull request #7075 from lcrees/get_default | Dominik Picheta | 2018-03-29 | 1 | -13/+80 |
|\ | | | | | Add default argument to tables.getOrDefault | ||||
| * | Add default argument to 'tables.getOrDefault' | lcrees | 2018-01-13 | 1 | -13/+80 |
| | | |||||
* | | Fix toCountTable and newCountTable | konqoro | 2018-02-21 | 1 | -21/+20 |
|/ | |||||
* | Tables: toCountTable: Update docs. | Konstantin Molchanov | 2017-12-27 | 1 | -1/+2 |
| | |||||
* | Tables: make `toCountTable` actually count the elements of the input openArray. | Konstantin Molchanov | 2017-12-27 | 1 | -1/+1 |
| | |||||
* | Fix counttable smallest loop start (#6917) | GULPF | 2017-12-15 | 1 | -3/+3 |
| | | | | | | * Fix counttable smallest * Fix counttable smallest loop start | ||||
* | Improved collection-to-string behavior (#6825) | Fabian Keller | 2017-12-14 | 1 | -2/+2 |
| | |||||
* | Fix counttable smallest (#6912) | GULPF | 2017-12-13 | 1 | -2/+7 |
| | |||||
* | improve the docs for tables.add | Araq | 2017-12-12 | 1 | -0/+4 |
| | |||||
* | Fix #4366 (#6290) | Daniil Yarancev | 2017-09-02 | 1 | -1/+1 |
| | |||||
* | tables.nim: use proper spacing | Andreas Rumpf | 2017-08-31 | 1 | -5/+5 |
| | |||||
* | fixes #6250 (#6251) | David Krause | 2017-08-17 | 1 | -1/+15 |
| | |||||
* | fix orderedtable enlarge proc. (#5937) | Parashurama | 2017-06-05 | 1 | -2/+5 |
| | | | This fixes issue #5917 | ||||
* | Implement 'take' for Table and TableRef (#5773) | Ruslan Mustakov | 2017-05-04 | 1 | -11/+30 |
| | |||||
* | Minor: spelling correction in tables.nim (#5727) | Zach Smith | 2017-04-19 | 1 | -2/+2 |
| | |||||
* | fixes #5487 (#5494) | David Krause | 2017-03-07 | 1 | -15/+49 |
| | |||||
* | Fix for #5482, let OrderedTable accept multiple keys (#5485) | David Krause | 2017-03-05 | 1 | -1/+15 |
| | |||||
* | reenabled clear test, made clear working (#5323) | Arne Döring | 2017-02-02 | 1 | -2/+5 |
| | |||||
* | Fix description of CountTable's smallest proc | Paweł Świątkowski | 2016-12-11 | 1 | -2/+2 |
| | |||||
* | Corrected test case for #5057. | Yuriy Glukhov | 2016-11-27 | 1 | -3/+3 |
| | |||||
* | Fixes #5057 | Yuriy Glukhov | 2016-11-26 | 1 | -12/+28 |
| | |||||
* | Fixes #5035 | Felix Krause | 2016-11-18 | 1 | -10/+3 |
| | |||||
* | Fixes #4974 | Felix Krause | 2016-10-31 | 1 | -9/+15 |
| | |||||
* | fixes #4940 | andri lim | 2016-10-27 | 1 | -1/+1 |
| | |||||
* | Fixes #4946 | Felix Krause | 2016-10-24 | 1 | -0/+1 |
| | |||||
* | Table fixes. fixes #4901 | Felix Krause | 2016-10-23 | 1 | -4/+37 |
| | | | | | | | | * added `==` for OrderedTable, CountTable and the *Ref types * added missing documentation to all `==` procs * fixed clear() for OrderedTables, which did not work because `var` does not work well with `|` * added tests | ||||
* | fixes #4844 | Araq | 2016-10-08 | 1 | -1/+5 |
| | |||||
* | fixes a critical tables bug that caused 'enlarge' to crash after 'add' | Andreas Rumpf | 2016-09-05 | 1 | -3/+6 |
| | |||||
* | Merge pull request #4367 from kierdavis/4365-tables-clear | Andreas Rumpf | 2016-08-25 | 1 | -3/+3 |
|\ | | | | | Improvements to tables.clear() | ||||
| * | Add a fix for clear() on non-ref types by adding a missing 'var' annotation ↵ | Kier Davis | 2016-07-09 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | to the type signature However, this fix won't take effect until a compiler bug (#4448) is fixed. Until then, the codebase functions identically to how it did before this commit (calls to clear() fail to compile for Table/OrderedTable/CountTable as the argument is immutable). | ||||
* | | make nim bootstrap again for older versions | Andreas Rumpf | 2016-07-30 | 1 | -2/+2 |
| | | |||||
* | | stdlib and compiler don't use .immediate anymore | Andreas Rumpf | 2016-07-29 | 1 | -8/+8 |
| | | |||||
* | | Merge pull request #4463 from flyx/tables-equals-no-KeyError | Andreas Rumpf | 2016-07-19 | 1 | -5/+4 |
|\ \ | | | | | | | `==` in tables should not raise KeyError | ||||
| * | | Use getOrDefault for tables.`==` | Felix Krause | 2016-07-08 | 1 | -7/+5 |
| | | | |||||
| * | | `==` in tables should not raise KeyError | Felix Krause | 2016-07-07 | 1 | -2/+3 |
| |/ | | | | | | | | | | | * With previous code, the compiler deduced that equalsImpl may raise a KeyError. While this could only actually happen in a nasty multi-threaded environment, I fixed the code so that it will never happen. | ||||
* | | use table literal syntax | Axel Pahl | 2016-07-12 | 1 | -2/+2 |
| | | |||||
* | | explain difference between Table and TableRef in tables.nim | Axel Pahl | 2016-07-12 | 1 | -0/+33 |
|/ | |||||
* | Implement clear() for CountTableRef. Fixes #4325. | Kier Davis | 2016-06-13 | 1 | -1/+1 |
| | |||||
* | Implements tables.clear. | Dominik Picheta | 2016-06-02 | 1 | -5/+29 |
| | |||||
* | Introduce template withValue() for tables.nim too. | cheatfate | 2016-05-27 | 1 | -0/+45 |
| | |||||
* | Added del for OrderedTable and OrderedTableRef | Yuriy Glukhov | 2016-04-13 | 1 | -0/+41 |
| | |||||
* | Fix CountTableRef#getOrDefault | Sloane Simmons | 2016-01-09 | 1 | -1/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes issue with CountTableRef and getOrDefault: ```{nimrod} import tables proc main() = const testKey = "TESTKEY" let t: CountTableRef[string] = newCountTable[string]() # Before, does not compile with error message: #test_counttable.nim(7, 43) template/generic instantiation from here #lib/pure/collections/tables.nim(117, 21) template/generic instantiation from here #lib/pure/collections/tableimpl.nim(32, 27) Error: undeclared field: 'hcode' echo "Count of " & testKey & " is " & $t.getOrDefault(testKey) t.inc(testKey,3) echo "Count of " & testKey & " is " & $t.getOrDefault(testKey) when isMainModule: main() ``` Previously, `getOrDefault` for CountTableRef objects was calling the `getOrDefaultImpl` template, which used the t.data.hcode object - assuming a Table or similar object. Because CountTableRef didn't have an hcode in its data tuples, this wouldn't compile. Changed to be the same as `CountTable#getOrDefault`. |