Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
flywind
f26c25737c
remove outdated codes ( #17140 )
...
* remove unnecessary when statement
* remove outdated codes
2021-02-22 09:40:11 +01:00
Timothee Cour
b9994925f5
remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ( #16918 )
...
* nimNoArrayToCstringConversion deadcode
* nimbabel deadcode
* nimHasalignOf deadcode
* nimvarargstyped deadcode
* nimhygiene deadcode
* nimNewTypedesc deadcode
* nimlocks deadcode
* nimHasCppDefine deadcode
* nimHasRunnableExamples deadcode
* nimHasNilChecks deadcode
* nimSymKind deadcode
* minor macros refactoring
* nimVmEqIdent deadcode
* nimNoNil deadcode
* nimNoZeroTerminator deadcode
* nimHasSymOwnerInMacro deadcode
* nimVmExportFixed deadcode
* nimNewRuntime deadcode
* nimAshr deadcode
* nimUncheckedArrayTyp deadcode
* nimHasTypeof deadcode
* nimErrorProcCanHaveBody deadcode
* nimHasHotCodeReloading deadcode
* nimHasSignatureHashInMacro deadcode
* nimHasDefault deadcode
* nimMacrosSizealignof deadcode
2021-02-17 09:32:36 +01:00
Héctor M. Monacci
d1210a3bb9
Another typo corrected ( #16974 )
...
From `fliter proc` to `filter proc`
2021-02-08 20:12:48 -08:00
Héctor M. Monacci
a9f44b7257
Correct typo ( #16972 )
...
From `fliter proc` to `filter proc`
2021-02-08 19:39:25 +01:00
konsumlamm
435f829348
Improve sequtils documentation ( #16559 )
...
* Improve sequtils documentation
Uncomment assertions in tests
* Use present tense
2021-01-04 11:04:30 +01:00
ee7
38eb021f81
sequtils.nim: Change some func back to proc ( #16309 )
...
This commit changes the funcs that take a `proc` parameter back to
procs.
This reverts some of commit 6f57ebae34 :
sequtils.nim: Use `func` (#16293 )
See also:
- https://github.com/nim-lang/Nim/issues/16303
- https://github.com/nim-lang/Nim/pull/16304
2020-12-14 20:14:49 +01:00
flywind
8f6e07a9a2
clean the docs of sequtils ( #16332 )
2020-12-14 16:38:02 +01:00
ee7
6f57ebae34
sequtils.nim: Use func ( #16293 )
...
* sequtils.nim: proc -> func
* sequtils.nim: proc -> func in links
* sequtils.nim: proc -> func in non-link doc comments
* test: add `sequtils` to strictFuncs test
2020-12-09 12:11:16 +01:00
ihlec
5c23ba7545
fixed article duplication typos ( #16216 )
2020-12-02 09:15:29 +01:00
Clyybber
7364794fed
Grammar fixes
2020-10-30 16:00:37 +01:00
Miran
ec059240b0
promote collect macro as a map+filter replacement ( #15788 )
...
* promote `collect` macro as a map+filter replacement
* Update lib/pure/collections/sequtils.nim
2020-10-30 10:12:01 +01:00
Juan Carlos
6b3654c48d
Add 1 overload to apply ( #15439 )
2020-10-01 09:22:22 +02:00
flywind
de7f2372be
docs minor and #15335 ( #15337 )
2020-09-16 14:58:50 +02:00
Clyybber
282128ab66
Fix #14994 ( #14996 )
...
* Fix #14994
* Revert misplaced "optimization"
* Typo
2020-07-15 23:33:58 +02:00
Timothee Cour
d573581eb7
remove isMainModule from json,os,sequtils ( #14572 )
...
* move json.isMainModule => tjson
* move isMainModule => tos,tsequtils
2020-06-06 11:50:46 +02:00
Timothee Cour
5caaa4bf6f
fix #14404 foldr had the classic multiple evaluation bug ( #14413 )
2020-05-21 11:01:43 +02:00
Andreas Rumpf
a73d403901
sequtils refactoring: prefer typeof over type ( #14212 )
2020-05-04 11:18:29 +02:00
hlaaftana
fbc97e712a
move since from inclrtl to std/private/since ( #14188 )
...
* move since from inclrtl to std/private/since
* move since import in system below for HCR
2020-05-02 23:51:59 +02:00
Judd
04c326569b
fix mapIt issues #12625 & #12639 ( #14041 )
...
* fix mapIt issues #12625 & #12639 :
1. fallback to call `map` when the result of `op` is a closure;
2. use `items(s)` in the for loop.
* fix test errors.
* add comments and InType is moved.
* fix ident.
2020-04-21 14:50:16 +02:00
Araq
8ee0771b5a
return types must not be Natural for reasons I won't outline here
2020-04-02 15:01:14 +02:00
Dean Eigenmann
df8e0e7f0c
feature/count ( #13837 )
2020-04-02 12:09:29 +02:00
Andreas Rumpf
484548c784
revert stdlib changes which are not required anymore
2020-04-01 19:38:44 +02:00
Zahary Karadjov
0521f98486
Hrm, the new errors highlighted some code that seems to be broken
...
New issue: since `Table[A, B]` allocates its backing storage with
`newSeq[KeyValuePair[A, B]]`, it's no longer legal to create a table
with `not nil` types used as either keys or values.
2020-04-01 19:38:44 +02:00
Timothee Cour
e05aca8734
make unzip faster: seq[i]=val can be 7X faster than seq.add(elem) ( #13448 )
2020-02-21 17:26:52 +01:00
Kaushal Modi
bb777fef76
Add sequtils.unzip to complement sequtils.zip ( #13429 )
2020-02-20 19:15:34 +01:00
Miran
bf96d6d316
Idxmin & idxmax, continuation ( #13208 )
...
* Add idxmin() which returns the index of the minimum value
* Add idxmax() which returns the index of the maximum value
* Add tests for idxmin()
* Add tests for idxmax()
* Remove initialization of result = 0
* Adds overloading for arrays (no enums indexed arrays yet)
* Add support for enum index arrays
* Fix tests with enum
* Fix tests for idxmax
* Change names of the procedures to minIndex and maxIndex
* address Araq's comments:
- remove 'array' versions
- add .since pragma
- return 'int' instead of 'Natural'
- add changelog entry
Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com >
2020-01-20 16:57:34 +01:00
Oscar Nihlgård
5456da3ca9
Fix sequtils.delete bug with out of bounds indexes ( #12506 )
2019-11-29 11:15:20 +01:00
narimiran
8394c00300
remove long-deprecated 'mapIt'
2019-11-13 14:24:25 +01:00
Kaushal Modi
b24560a140
Make sequtils.zip return seq of anonymous tuples ( #12575 )
...
* Make sequtils.zip return seq of anonymous tuples
Earlier the tuples had named fields "a" and "b" and that made it
difficult to assign the zip returned seqs to other vars which expected
seqs of tuples with field names other than "a" and "b".
* Make sequtils.zip backwards compatible with Nim 1.0.x
2019-11-04 21:11:43 +01:00
Nindaleth
34dbc5699e
fix several typos in documentation and comments ( #12553 )
2019-10-30 09:08:45 +01:00
Jjp137
1d42108fda
sequtils: replace deprecated 'random' call within example ( #12515 ) [backport]
2019-10-25 09:47:34 +02:00
Jjp137
93461aee34
Fix many broken links
...
Note that contrary to what docgen.rst currently says, the ids have
to match exactly or else most web browsers will not jump to the
intended symbol.
2019-10-22 17:59:12 -07:00
Andreas Rumpf
60d64d1aef
use system.move instead of system.shallowCopy if the GC mode requires it
2019-10-04 09:48:45 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Kaushal Modi
0b511b15ea
styleCheck fix: type naming: s/outType/OutType/ ( #11749 )
2019-07-16 21:22:34 +02:00
Miran
2255d8795b
[other] prettify collections ( #11695 )
2019-07-09 22:45:23 +02:00
Miran
23e95dc629
[bugfix] fix delete in strutils and sequtils ( #11535 )
2019-06-20 21:04:37 +02:00
narimiran
cf47c2c60c
[other] documentation: deprecation comments are now auto-generated
2019-06-19 14:21:46 +02:00
Araq
95b65504e6
sequtils: minor typo
2019-05-10 19:50:23 +02:00
cooldome
3647c03cad
reimplement_pr_10974 ( #11130 )
2019-04-27 12:41:08 +01:00
Miran
e75049d7b6
fixes #10433 ( #10444 )
2019-01-24 12:22:59 +01:00
narimiran
52a54f5f04
documentation: remove author field [ci skip]
2019-01-17 07:15:40 +01:00
narimiran
2e8bf88614
sequtils doc: another quickfix [ci skip]
2019-01-16 12:32:00 +01:00
narimiran
3abe6e9e14
quickfix for sequtils docs [ci skip]
2019-01-16 11:58:51 +01:00
narimiran
b097081f10
better docs: sequtils
2019-01-16 09:45:27 +01:00
data-man
a38f353597
Add the parameter isSorted for the sequtils.deduplicate
2018-12-07 02:17:40 +05:00
Timothee Cour
02351d02e7
universal toSeq: works with UFCS; works with inline & closure iterators, and with iterables ( #8711 )
...
* universal toSeq: works with UFCS; works with inline, closure, and proc
iterators, and also non-iterators
* support all iterables with toSeq
* workaround for #9130
2018-11-22 11:47:14 +01:00
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