Commit Graph

323 Commits

Author SHA1 Message Date
Lolo Iccl
af591544c5 Modify hash for HashSet to use xor to mix hash of items. 2018-05-09 17:41:41 +02:00
Lolo Iccl
5c7b66e07a Modify previous commit and add tests 2018-05-09 17:41:41 +02:00
Lolo Iccl
ee8313da3f Modify previous commit
Modify previous commit to use data[h].hcode in
proc hash for HashSet and for OrderedSet.
2018-05-09 17:41:41 +02:00
Lolo Iccl
80f17f9405 Add proc hash for HashSet and for OrderedSet
close #7772
2018-05-09 17:41:41 +02:00
Andreas Rumpf
c8b2e65dbb critbits: don't rely on terminating zero 2018-04-29 07:42:47 +02:00
Andreas Rumpf
b899713832 make more tests green 2018-04-29 01:48:21 +02:00
skilchen
9bacdd64c1 fix issues #6986 and #7501 (#7513) 2018-04-06 10:24:58 +02:00
Roman Ovseitsev
17d0e29d40 Fix documentation link for set type (#7465) 2018-04-03 10:39:17 +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
Araq
a9974a33f1 more documentation fixes 2018-03-05 23:25:50 +01:00
konqoro
b0637bc373 Fix toCountTable and newCountTable 2018-02-21 13:22:41 +02:00
Andreas Rumpf
89782460a3 fixes #7215 2018-02-14 10:09:35 +01:00
Imran Hendley
df4f707743 add more functionality from sets to intsets (#7185)
* add more functionality from sets to intsets

* remove -+-

* < and == performance

* don't hardcode s.a.len

* remove shortcuts from < and ==
2018-02-12 21:20:17 +01:00
lcrees
1e55d92009 Add default argument to 'tables.getOrDefault' 2018-01-13 16:06:08 -07:00
Yuriy Glukhov
d1e10f9aa3 Fixed mutex usage in SharedList and SharedTable. Closes #6988 (#6990) 2017-12-31 09:28:51 +01: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
Andreas Rumpf
6ee08cf70c fix documentation comments in sequtils.nim 2017-12-05 13:53:18 +01:00
andri lim
42666a5d6d fix ordered set equality (#6791) 2017-11-24 14:43:49 +01:00
Andreas Rumpf
58187f2120 added a warning that the .deprecate statement is unreliable for routines 2017-11-21 11:27:35 +01:00
Andreas Rumpf
5ccf69ffa3 cleaned up macros.nim 2017-11-19 13:23:04 +01:00
Andreas Rumpf
908a25a2ca replaced asArray with a much more powerful mapLiterals macro 2017-11-18 14:18:00 +01:00
Andreas Rumpf
6976bf20f5 Use 'typedesc' instead of 'untyped' 2017-11-18 14:18:00 +01:00
Fredrik Høisæther Rasch
b02ecda5a0 Move asArray macro back to sequtils
This reverts commit 72f653c2da.
2017-11-18 14:18:00 +01:00
Fredrik Høisæther Rasch
7744c6ce31 Moving asArray to future module
As per [suggestion](https://github.com/nim-lang/Nim/pull/6640#issuecomment-341565453) made by @Araq
2017-11-18 14:18:00 +01:00
Fredrik Høisæther Rasch
6f799e1505 Swapping asArray parameter order
In reaction to https://github.com/nim-lang/Nim/pull/6640#issuecomment-341528413
2017-11-18 14:18:00 +01:00
Fredrik Høisæther Rasch
3d11ef8511 Changing asArray documentation
in reaction to https://github.com/nim-lang/Nim/pull/6640#discussion_r148367553
2017-11-18 14:18:00 +01:00
Fredrik Høisæther Rasch
70f3226836 avoid asArray macros import when using nimscript 2017-11-18 14:18:00 +01:00
Fredrik Høisæther Rasch
5dfbeab65f Implement an asArray macro
fixes #6563
2017-11-18 14:18:00 +01:00
Lynn C. Rees
0ab373115c Trim remaining expr/stmt from stdlib (#6742) 2017-11-15 17:34:48 +01:00
Lynn C. Rees
c7dbbe2107 Add heapqueue module to doc index (#6655)
Add copyright header to heapqueue modlue
2017-11-10 18:13:01 +01:00
Andreas Rumpf
b14cc1e3b2 fixes #6631 2017-10-30 14:45:57 +01:00
Andreas Rumpf
aa526da706 make tests green again 2017-10-29 23:09:46 +01:00
Andreas Rumpf
957105520f make tests green again 2017-10-29 21:27:22 +01:00
Andreas Rumpf
6a3288a60e more replacements for the deprecated '<' 2017-10-29 08:55:30 +01:00
Andreas Rumpf
70ea45cdba deprecated unary '<' 2017-10-29 08:37:13 +01:00
narimiran
71c5c0a47f Sequtils improvements (#6574) 2017-10-25 13:41:41 +02:00
narimiran
e73adde803 update links 2017-10-22 14:46:58 +02:00
narimiran
585ac9cc34 change seq name to list 2017-10-22 14:35:17 +02:00
narimiran
ea752f29a0 more descriptive names 2017-10-22 13:43:45 +02:00
narimiran
a897693395 add count to sequtils 2017-10-21 20:32:10 +02:00
GULPF
54c805921a Refac of lists module (#6400) 2017-10-16 15:03:06 +02:00
GULPF
cc24b6d4cb Sets enhancements, fixes #2467 (#6158) 2017-09-20 13:44:44 +02:00
superfunc
d1f6ddfd64 Add counterpart to containsOrIncl for excl (#6360) 2017-09-15 10:49:32 +02: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