Commit Graph

59 Commits

Author SHA1 Message Date
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
Federico Ceratto
c95f6f117a Fix typos 2015-02-15 16:06:06 +00:00
dumndummer
07f42fa612 Changed name 'pred' to 'op' in mapIt template 2015-02-02 14:42:00 +00:00
dumndummer
c19fb7b366 Update sequtils.nim
Renamed param name 'pred' to 'op' in mapIt template to better correspond with map proc in system module
2015-01-28 21:44:52 +00:00
Araq
f7dca91344 fixes #619 2014-11-15 11:10:13 +01:00
Araq
595cc93762 recursive tuple types are now invalid (breaking change) 2014-10-02 16:54:05 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
def
61a6ecfd94 Move newSeqWith to sequtils 2014-08-11 21:05:21 +02:00
Andreas Rumpf
188df67677 Merge pull request #1377 from sjakobi/patch-1
sequtils: Correct documentation for keepIf proc
2014-07-19 12:49:31 +02:00
Simon Jakobi
78b56bf7dc sequtils: Complete mapIt documentation example 2014-07-19 00:09:47 +02:00
Simon Jakobi
4c4ebc93d7 sequtils: Correct documentation for keepIf proc 2014-07-18 23:51:17 +02:00
Andreas Rumpf
dc15d37db0 Merge pull request #1301 from def-/sequtils-filter-directly
Add keepIf proc and keepIfIt template to sequtils
2014-06-30 18:33:50 +02:00
Reimer Behrends
cbcf01fc06 Rename sequtils.distnct to sequtils.deduplicate. 2014-06-28 19:18:13 +02:00
def
f6c4864f9f Rename keepIfIt to keepItIf 2014-06-28 14:39:21 +02:00
def
92e958b654 Add keepIf proc and keepIfIt template to sequtils 2014-06-22 23:15:53 +02:00
Grzegorz Adam Hankiewicz
c3cb03c640 Renames split to distribute. Refs #1084. 2014-04-13 10:50:27 +02:00
Grzegorz Adam Hankiewicz
fac9947ebe Adds generic split proc to sequtils. 2014-04-11 22:24:49 +02:00
Grzegorz Adam Hankiewicz
700f32e814 Adds convenience mapIt templates. 2014-02-02 17:37:06 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Varriount
ea92682b98 Apply changes suggested by Araq
Added documentation examples, added defaults
2013-10-27 03:44:55 -04:00
Clay Sweetser
314e526f75 Added an insertion function that inserts elements of an openarray.
Added a deletion function that allows elements between two positions in a sequence to be deleted
2013-10-20 13:06:07 -04:00
Araq
9b9a180947 'inject' for 'for' loop variables 2013-05-14 00:41:07 +02:00
Grzegorz Adam Hankiewicz
e4c3515baf Fixes the dirtyness of the filterIt template. Refs #351. 2013-03-17 12:14:27 +01:00
Grzegorz Adam Hankiewicz
72728679a8 Adds foldl and foldr templates to sequtils. 2013-03-16 22:58:20 +01:00
Grzegorz Adam Hankiewicz
e28674c10b Indents documentation tests with blocks for hygiene. 2013-03-16 22:09:31 +01:00
Grzegorz Adam Hankiewicz
91700f29e7 Renames each proc to map, each is left deprecated. 2013-01-22 21:41:26 +01:00
Araq
7b5b9656f5 fixes sequtils.filterIt 2013-01-19 12:33:07 +01:00
Grzegorz Adam Hankiewicz
abca30cc06 Adds note about distnct being misspelled on purpose. 2013-01-09 20:32:58 +01:00