Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Algorithm improvements (#16529) | konsumlamm | 2021-01-02 | 1 | -134/+142 |
| | | | | | | | | | | | | * Improve documentation for algorithm Remove unused import in algorithm tests Improve formatting * Reapply fix for reverse on empty openArray * Use 3rd person singular Add more explanations. | ||||
* | small runnableExamples changes (#16181) | flywind | 2020-11-30 | 1 | -30/+28 |
| | |||||
* | move tests to testament (#16101) | flywind | 2020-11-24 | 1 | -98/+0 |
| | | | | | | | | | * move tests to testament * minor * fix random * disable test random | ||||
* | fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734) | shirleyquirk | 2020-10-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | * update c_malloc's to csize_t fix for broken --os:ios * I'm an idiot sorry * Create talgorithm.nim * workaround for #10456 I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is. * working test, use typeof rather than auto | ||||
* | init checks and 'out' parameters (#14521) | Andreas Rumpf | 2020-06-23 | 1 | -0/+1 |
| | | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog | ||||
* | Remove deprecated stuff from stdlib (#14699) | Miran | 2020-06-17 | 1 | -4/+0 |
| | | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff | ||||
* | fixes #14079 [backport:1.2] (#14163) | Andreas Rumpf | 2020-04-29 | 1 | -1/+1 |
| | |||||
* | Error -> Defect for defects (#13908) | Jacek Sieka | 2020-04-28 | 1 | -10/+10 |
| | | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here. | ||||
* | [backport] fix #13352 | narimiran | 2020-02-07 | 1 | -1/+3 |
| | |||||
* | Fix many broken links | Jjp137 | 2019-10-22 | 1 | -1/+1 |
| | | | | | | 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. | ||||
* | use system.move instead of system.shallowCopy if the GC mode requires it | Andreas Rumpf | 2019-10-04 | 1 | -5/+3 |
| | |||||
* | [backport] run nimpretty on numbers stuff | narimiran | 2019-09-30 | 1 | -40/+49 |
| | |||||
* | styleCheck: make the compiler and large parts of the stdlib compatible with ↵ | Araq | 2019-07-10 | 1 | -14/+14 |
| | | | | --styleCheck:error | ||||
* | Render deprecated pragmas (#8886) | LemonBoy | 2019-06-03 | 1 | -3/+2 |
| | | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random | ||||
* | Comment on isSorted complexity. (#10686) [ci skip] | Federico Ceratto | 2019-02-16 | 1 | -1/+1 |
| | |||||
* | better docs: algorithm (#10372) | Thomas T. Jarløv | 2019-01-24 | 1 | -92/+347 |
| | |||||
* | 8684 add shortcut sort procs (#9174) | Konstantin Molchanov | 2018-10-11 | 1 | -22/+9 |
| | | | | | | | | * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim. * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim. | ||||
* | better docs for `algorithm` module (#9192) | Miran | 2018-10-09 | 1 | -58/+103 |
| | | | | | | | | | | | | * better docs for `algorithm` module * address the comments * small first letter in the first sentence * last argument is reverted to be `int` * `rotateLeft` keeps `discardable` pragma, as discussed on IRC * another small correction | ||||
* | Fix typo in an algorithm runnableExamples (#9260) | Kaushal Modi | 2018-10-09 | 1 | -1/+1 |
| | | | | | | Fixes the 'koch docs' build failure. Ref: https://github.com/nim-lang/Nim/commit/b90b45b01bba1f3fc241a96abd4ae5c8c314bb92 | ||||
* | Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. (#8778) | pqflx3 | 2018-10-09 | 1 | -7/+31 |
| | | | | | | * Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. Fixes 8684. * Change signatures to 'func'. Improve overload sort doc comments | ||||
* | Add algorithm.upperBound (#7851) | Dmitry Atamanov | 2018-05-29 | 1 | -4/+39 |
| | | | | * Add algorithm.upperBound * Docs updated | ||||
* | Fixes binarySearch's bug | data-man | 2018-05-23 | 1 | -2/+2 |
| | |||||
* | binarySearch became even better | data-man | 2018-05-23 | 1 | -6/+10 |
| | |||||
* | Faster binarySearch | data-man | 2018-05-23 | 1 | -0/+6 |
| | |||||
* | binarySearch improvements (#7850) | Dmitry Atamanov | 2018-05-20 | 1 | -14/+36 |
| | |||||
* | keep algorithm.nim warning free | Araq | 2018-05-18 | 1 | -6/+6 |
| | |||||
* | Merge branch 'devel' into araq-parser-fixes | Andreas Rumpf | 2018-05-06 | 1 | -20/+42 |
|\ | |||||
| * | remove deprecated stuff from the stdlib; introduce better deprecation warnings | Araq | 2018-05-05 | 1 | -3/+0 |
| | | |||||
| * | test binarySearch, fix for search in empty. (#7769) | Arne Döring | 2018-05-04 | 1 | -3/+24 |
| | | |||||
| * | Deprecate smart binary search (#7745) | Arne Döring | 2018-05-03 | 1 | -15/+19 |
| | | | | | | | | | | | | * deprecate smartBinarySearch * changelog entry | ||||
* | | warn about inconsistent spacing around binary operators; fixes #7582 | Andreas Rumpf | 2018-05-05 | 1 | -1/+1 |
|/ | |||||
* | Fix algorithm.fill for empty input | Oscar Nihlgård | 2018-04-04 | 1 | -3/+11 |
| | |||||
* | Move algorithm tests away from koch | Oscar Nihlgård | 2018-04-04 | 1 | -0/+13 |
| | |||||
* | More flexible lowerBound interface (#7344) | Yuriy Glukhov | 2018-03-16 | 1 | -1/+1 |
| | |||||
* | algorithm.nim: change formatting to Nim's defaults | Araq | 2018-03-05 | 1 | -4/+4 |
| | |||||
* | fixes #6631 | Andreas Rumpf | 2017-10-30 | 1 | -2/+2 |
| | |||||
* | updated algorithm.rotateLeft implementation | Andreas Rumpf | 2017-10-30 | 1 | -2/+2 |
| | |||||
* | use doAssert in rotateLeft example | Arne Döring | 2017-08-17 | 1 | -1/+1 |
| | |||||
* | fix for feedback on PR | Arne Döring | 2017-08-14 | 1 | -9/+11 |
| | |||||
* | allow a negative distance argument. Improved documentation. | Arne Döring | 2017-07-27 | 1 | -8/+22 |
| | |||||
* | changed rotate to rotateLeft with slice api | Arne Döring | 2017-07-27 | 1 | -45/+41 |
| | |||||
* | fixes for feedback | Arne Döring | 2017-07-27 | 1 | -13/+14 |
| | |||||
* | added rotate in algorithm | Arne Döring | 2017-07-27 | 1 | -1/+111 |
| | |||||
* | fixes #5625 | Andreas Rumpf | 2017-03-29 | 1 | -7/+9 |
| | |||||
* | Fix reverse on empty openArray (#5407) | fenekku | 2017-02-17 | 1 | -1/+1 |
| | | | Reversing an empty `openArray` would raise a RangeError. For instance for `a: seq[int] = @[]`, we have `a.high` return `-1` but `-1` is not a `Natural`. Leaving the array as-is is the expected behaviour. | ||||
* | algorithm: sort: fix link in documentation | Simon Ruderich | 2016-09-15 | 1 | -1/+1 |
| | |||||
* | Removed the use of .gensym pragma inside stdlib templates | Ruslan Mustakov | 2016-08-23 | 1 | -1/+1 |
| | |||||
* | expr and stmt are now deprecated | Andreas Rumpf | 2016-07-30 | 1 | -2/+2 |
| | |||||
* | Fixed algorithm.reversed to work for empty seq's. | Reimer Behrends | 2015-08-14 | 1 | -1/+2 |
| | |||||
* | Updated some example code in algorithm | apense | 2015-07-05 | 1 | -7/+7 |
| |