Commit Graph

86 Commits

Author SHA1 Message Date
Araq
963292f725 added system.typeof operation; fixes #9093 2018-10-24 17:09:51 +02:00
Dominik Picheta
269b957e29 Merges #8451 manually. Fixes #8099. 2018-10-03 21:25:11 -07:00
Araq
b9a1816009 make sequtils compile 2018-08-22 22:48:49 +02:00
Timothee Cour
af037546b0 fixes #7187 sequtils.toSeq produces the sequence from the iterator twice (#8586)
* cleanups refs #8584
* fixes #7187
2018-08-16 23:19:36 +02:00
Timothee Cour
ed9fd2b63c fixes #8577, fixes #8580, other bug fixes (#8584) 2018-08-14 10:44:28 +02:00
LemonBoy
32b62097a2 Fix regression for mapIt (#8567)
Don't try to be too smart and limit the use of `evalOnce` where strictly
needed as not every value can be assigned with a `let`.

Fixes #8566
2018-08-08 15:34:21 +02:00
LemonBoy
ba5e2d6fcb Make mapIt work on openArray's (#8543) 2018-08-07 18:45:27 +02:00
skilchen
57f4a5d429 sequtils: remove some aligning spaces around == to silence warnings 2018-07-21 19:16:05 +02:00
skilchen
9bacdd64c1 fix issues #6986 and #7501 (#7513) 2018-04-06 10:24:58 +02:00
Andreas Rumpf
89782460a3 fixes #7215 2018-02-14 10:09:35 +01:00
Andreas Rumpf
6ee08cf70c fix documentation comments in sequtils.nim 2017-12-05 13:53:18 +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
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
Arne Döring
000b8afd26 Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
Andreas Rumpf
e32f08d05b sequtils: removed outdated note 2017-03-14 08:40:02 +01:00
Andreas Rumpf
c486e6377c fixes #4386 2016-10-23 17:43:38 +02:00
Ruslan Mustakov
91d3661522 Removed the use of .gensym pragma inside stdlib templates 2016-08-23 14:01:16 +07:00
Andreas Rumpf
a8edf67a28 make nim bootstrap again for older versions 2016-07-30 00:50:38 +02:00
Andreas Rumpf
60b187513e stdlib and compiler don't use .immediate anymore 2016-07-29 23:51:01 +02:00
Andreas Rumpf
95bb19a579 moved random procs from math to its own module (breaking change) 2016-05-30 16:24:52 +02:00
Hans Raaf
cddabcfc63 Fixes foldl() and foldr() + foldl() with start parameter.
This fixes the (potential) multi-evaluation of the sequence parameter in
foldl() and foldr().

It also adds a foldl() version which gets a start parameter. This allows
for creating a result with a different type than the elements of the
sequence.
2016-03-06 17:52:18 +01:00
def
7540cdd169 Update comment about map being in system module 2015-11-23 16:23:35 +01:00
rbmz
4548c1aa9b added all/any/allIt/anyIt with tests and inline documentation
Signed-off-by: rbmz <rbmz@users.noreply.github.com>
2015-10-13 01:10:25 -03:00
Peter Mora
6318f77821 restore {.immediate.} to toSeq 2015-10-06 08:15:00 +02:00
Peter Mora
75097e2981 sequtils related changes 2015-10-05 22:42:22 +02:00
Alexander Mitchell-Robinson
564c9f4013 Fixed my name. 2015-09-07 19:51:52 -05:00
Araq
d230b75e0a removed sequtils.reversed again since it's already in algorithm.nim 2015-08-10 01:49:56 +02:00
Araq
cf4879bc48 added sequtils.reversed; refs #3148 2015-08-09 20:29:03 +02:00
Araq
a2b8b8b0dd 'sequtils doesn't take confusing default args anymore 2015-07-08 11:49:33 +02:00
Oleh Prypin
22db40e5e4 Turn some test outputs into actual tests 2015-04-21 15:59:32 +03:00
Oleh Prypin
32109a7867 Don't run non-test code when defined(testing) 2015-04-21 14:37:29 +03:00
Araq
a541be8935 prepare for upcoming parsing change of unary operators 2015-03-22 09:31:15 +01:00
Hans Raaf
51034d7e3a Changed cast to type conversion and added XXX. 2015-03-07 17:51:03 +01:00
Hans Raaf
9e2f79251c Do we want we to use the typesystem like this? 2015-03-06 18:16:00 +01:00
Hans Raaf
534fe46b82 Added repeat(seq, n) to sequtils.
This adds a repeat proc for sequences. There is also an test for it at the end of file.
2015-03-06 18:16:00 +01:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00