Araq
38bdf1cd7f
minor style changes
2019-07-10 23:55:56 +02:00
Araq
bc7733827d
make more parts of the stdlib compile with --styleCheck:error
2019-07-10 15:48:30 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Miran
2255d8795b
[other] prettify collections ( #11695 )
2019-07-09 22:45:23 +02:00
Miran
3d50f7e2a1
[bugfix] fix OrderedTable iterators ( #11562 )
2019-06-22 22:28:45 -07:00
Miran
45bbf1ef5b
[bugfix] fix OrderedTable default initialization ( #11549 )
2019-06-20 21:03:11 +02:00
Andreas Rumpf
7215341190
make fullpaths the default in error messages and stack traces for mor… ( #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
2019-06-05 08:02:54 +02:00
Dominik Picheta
6b2ed28d55
Workaround "move not found" exception in JS when using tables. ( #11256 )
2019-05-15 08:21:25 +02:00
Miran
a5fb0acf5f
CountTable: check for usages after sorting ( #11189 )
2019-05-08 09:31:57 +02:00
Miran
d2e1936cf2
tables: check for mutation when iterating ( #11160 )
2019-05-04 22:58:42 +02:00
Andreas Rumpf
e1515b53d1
introduce temporary <//> for 'owned' to get this compile with 0.19 ( #11145 )
...
* 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
2019-05-02 08:07:09 +02:00
Miran
737fff5902
Initialized collections ( #11094 )
...
* 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
2019-04-29 08:13:52 +02:00
Jjp137
e597db83b7
tables: fix link ( #11090 ) [ci skip]
2019-04-23 09:37:21 +02:00
Christopher Dunn
14fc7437c3
Improve tables docs for del/take ( #11030 )
...
* Continuation of b40a637f
* https://forum.nim-lang.org/t/4789
2019-04-17 11:57:32 +02:00
Andy Davidoff
01f09567c4
faster CountTable sort(), optional SortOrder ( #11010 )
...
* use existing sort for CountTable, and
add SortOrder options to CountTable, OrderedTable sort(s)
* add some tests, runnables, etc.
* fix runnable imports
2019-04-16 09:42:54 +02:00
narimiran
52a54f5f04
documentation: remove author field [ci skip]
2019-01-17 07:15:40 +01:00
narimiran
b40a637fac
better docs: tables
2019-01-16 09:45:57 +01:00
Arne Döring
b78af990b8
Fixes #10065 ( #10260 )
...
CountTable now returns 0 instead of 'key not found' for get requests.
2019-01-14 17:16:17 +01:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
Miran
98a8868cb4
better docs for tables module ( #9221 )
...
* better docs for `tables` module
* lower case for the first sentence in docs
2018-10-09 22:39:51 +02:00
Andreas Rumpf
94684488d6
make more tests green
2018-08-14 21:15:03 +02:00
Yuriy Glukhov
e66b7f3909
Clarify the docs for tables.del ( #8134 )
2018-06-27 22:25:22 +02:00
Dominik Picheta
082b071683
Merge pull request #7075 from lcrees/get_default
...
Add default argument to tables.getOrDefault
2018-03-29 11:41:25 +01:00
konqoro
b0637bc373
Fix toCountTable and newCountTable
2018-02-21 13:22:41 +02:00
lcrees
1e55d92009
Add default argument to 'tables.getOrDefault'
2018-01-13 16:06:08 -07:00
Konstantin Molchanov
b592f069bb
Tables: toCountTable: Update docs.
2017-12-27 13:44:47 +04:00
Konstantin Molchanov
c36d7ffc7c
Tables: make toCountTable actually count the elements of the input openArray.
2017-12-27 13:30:32 +04:00
GULPF
cf9bee1702
Fix counttable smallest loop start ( #6917 )
...
* Fix counttable smallest
* Fix counttable smallest loop start
2017-12-15 13:59:32 +01:00
Fabian Keller
6df6ec27ec
Improved collection-to-string behavior ( #6825 )
2017-12-14 14:02:13 +01:00
GULPF
542d45f882
Fix counttable smallest ( #6912 )
2017-12-13 02:52:35 +01:00
Araq
6f8e98cff2
improve the docs for tables.add
2017-12-12 19:55:46 +01:00
Daniil Yarancev
6ce6883fad
Fix #4366 ( #6290 )
2017-09-02 21:23:00 +02:00
Andreas Rumpf
6467e55ae8
tables.nim: use proper spacing
2017-08-31 13:42:22 +02:00
David Krause
0e276be301
fixes #6250 ( #6251 )
2017-08-17 13:38:10 +02:00
Parashurama
cd51628f57
fix orderedtable enlarge proc. ( #5937 )
...
This fixes issue #5917
2017-06-05 13:16:30 +02:00
Ruslan Mustakov
78315792d3
Implement 'take' for Table and TableRef ( #5773 )
2017-05-04 22:33:52 +02:00
Zach Smith
fa592f3aad
Minor: spelling correction in tables.nim ( #5727 )
2017-04-19 00:35:44 +02:00
David Krause
7dc8dcb581
fixes #5487 ( #5494 )
2017-03-07 16:58:38 +01:00
David Krause
643b7f8650
Fix for #5482 , let OrderedTable accept multiple keys ( #5485 )
2017-03-05 20:17:43 +01:00
Arne Döring
2c6c865b35
reenabled clear test, made clear working ( #5323 )
2017-02-02 23:06:13 +01:00
Paweł Świątkowski
11db362d86
Fix description of CountTable's smallest proc
2016-12-11 19:05:39 +01:00
Yuriy Glukhov
10292a2626
Corrected test case for #5057 .
2016-11-27 13:34:24 +02:00
Yuriy Glukhov
41205493c0
Fixes #5057
2016-11-26 12:43:36 +02:00
Felix Krause
93a998204c
Fixes #5035
2016-11-18 23:42:15 +01:00
Felix Krause
af4c75a893
Fixes #4974
2016-10-31 20:46:50 +01:00
andri lim
a42e9b11a7
fixes #4940
2016-10-27 11:32:14 +07:00
Felix Krause
7476e4fcb2
Fixes #4946
2016-10-24 22:36:21 +02:00
Felix Krause
73b0bb52bb
Table fixes. fixes #4901
...
* 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
2016-10-23 11:21:52 +02:00
Araq
80ad3d3441
fixes #4844
2016-10-08 10:47:47 +02:00
Andreas Rumpf
4077050a42
fixes a critical tables bug that caused 'enlarge' to crash after 'add'
2016-09-05 08:51:38 +02:00