summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* replace some runtime repr in stdlib for gc:arc (#12716)Andy Davidoff2019-11-253-4/+5
|
* delete list comprehension (#12392)Arne Döring2019-11-221-58/+0
| | | The `lc` macro is now part of `graveyard` repository.
* index out of bounds exception when data is empty (#12428)Jack Tang2019-11-221-9/+11
|
* add collect macro (#12708)b3liever2019-11-221-0/+97
| | | | | | * add collect macro * Add to changelog
* fixes #11863 multipart data need $ (#12707)Andreas Rumpf2019-11-221-0/+13
| | | | | * fixes #11863 * improved the code; refs #12412
* Discussion both in (#12678)c-blake2019-11-201-31/+41
| | | | | | | | | | | https://github.com/nim-lang/Nim/pull/12600 and in https://forum.nim-lang.org/t/5499 indicates that everyone is happy/happier with ``pop``. This just renames the brand new ``take``s to ``pop`` and installs inline aliases/wrappers to preserve ``Table.take`` and ``TableRef.take``. Update apis.rst to try to maintain consistency of remove-and-return procs.
* Fixes ambiguity errors when evaluating Nimble files. (#12674) [backport]Dominik Picheta2019-11-181-6/+6
| | | | | | | | When trying to evaluate a Nimble file which imports a Nim module I was getting the following errors for some reason: ``` /Users/dom/projects/nim/lib/pure/parseopt.nim(229, 46) Error: ambiguous call; both system.paramCount() [declared in /Users/dom/projects/nim/lib/system/nimscript.nim(65, 6)] and os.paramCount() [declared in /Users/dom/projects/nim/lib/pure/os.nim(2613, 8)] match for: () ```
* Fix htmlgen html lang (#12668) [backport]Juan Carlos2019-11-151-1/+1
| | | | | * Fix HTMLGen enable lang on html tag
* fix documentation of `$`*(dt: DateTime) (#12660)David Krause2019-11-151-1/+1
| | | | (cherry picked from commit 39122ecd93854dd696aad2a5a0a5ad04d6dcdbfa)
* async: cleaner solution that avoids GC_ref on strings which doesn't exist ↵Araq2019-11-131-6/+5
| | | | for --gc:arc
* remove long-deprecated 'mapIt'narimiran2019-11-131-7/+0
|
* .cursor implementation (#12637)Andreas Rumpf2019-11-121-4/+7
| | | | | | | | | | | * cursors: first implementation * added currently failing test * .cursor works for doubly linked lists * make -d:useMalloc work again * added code to nil out refs in a destructor * it's now called --gc:arc * renderer.nim: render nkBreakState properly * make simple closure iterators work without leaking
* Version of trimZeros without temp strings (#12633)b3liever2019-11-111-13/+11
|
* Implemented outplace differently (#12599)Clyybber2019-11-091-0/+45
| | | | | * implemented sugar.outplace; refs #12550 * Different approach, allows for chaining
* fix #12519: introduce OrderedTable.take, CountTable.del, CountTable.take ↵Miran2019-11-081-4/+148
| | | | | | | | | | | | (#12600) * add OrderedTable.take * add CountTable.del and CountTable.take * add .since pragma to the introduced public procs * add changelog entry [ci skip]
* make parsexml compatible with --gc:destructors/newruntimeAndreas Rumpf2019-11-071-2/+2
|
* added support for openArray's for `gcd` and `lcm` (#12621)Yanis Zafirópulos2019-11-071-1/+25
|
* allow random module to be used in standalone: (#12617)Judd2019-11-071-1/+1
| | | | proc randomized*() uses time releated function which is not available on standalone, so disable this function for standalone.
* osproc needs 'import linux' for -d:useCloneAndreas Rumpf2019-11-071-0/+3
|
* Merge pull request #12613 from nim-lang/miran-unused-importsDominik Picheta2019-11-064-10/+4
|\ | | | | Remove unused imports
| * remove unused importsnarimiran2019-11-064-10/+4
| |
* | [backport] print more information for the previous commitnarimiran2019-11-061-0/+2
| |
* | [backport] rewrite flaky runnable examplenarimiran2019-11-061-3/+5
|/
* async: use $ and not repr in debug modeAraq2019-11-051-1/+1
|
* Add `or detectOs(Manjaro)` (#12587) [backport]jiro2019-11-051-1/+1
| | | | | | Using `pacman` command in Manjaro Linux (cherry picked from commit 1ff3494dabd0fa5bf619fc8bd558381ead7c358d)
* remove deprecated procs (#12535)Andreas Rumpf2019-11-054-303/+4
|
* fix #8242, fix #12586: fix 'formatFloat' with 'precision = 0' (#12592)Miran2019-11-052-17/+8
| | | | | | | | | | | | | | * fix #8242, fix #12586: fix 'formatFloat' with 'precision = 0' 'formatFloat' with 'precision = 0' now gives the same result (a number without a decimal point) in all backends. This is compatible with Python's formatters, too. * fix failing tests * add changelog entry * add version switch
* Make sequtils.zip return seq of anonymous tuples (#12575)Kaushal Modi2019-11-041-40/+64
| | | | | | | | | | * 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
* [backport] Add docs to better distinguish among getProjectPath, ↵Kaushal Modi2019-10-311-1/+6
| | | | | getCurrentDir and currentSourcePath (#12565) Fixes https://github.com/nim-lang/Nim/issues/10477.
* introduce csize_t instead of fixing csize (#12497)Arne Döring2019-10-311-2/+2
|
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-308-9/+9
|
* [backport] fix #12528, fix #12525: incorrect generic type resolution for ↵Andreas Rumpf2019-10-281-0/+3
| | | | | | default values (#12538)
* colors: fix 'mix' template and make most examples runnable (#12532) [backport]Jjp1372019-10-281-61/+61
| | | | | * colors: fix the 'mix' template * colors: make most examples runnable
* splitPath() behavior synchronized with splitFile() (#12481)Artem V L2019-10-281-3/+16
| | | | | | | | * splitPath() behavior synchronized with splitFile() having the expected behavior in all languages splitPath() docstrings update, tests added for both splitPath() and splitFile() * Path splitting refined and described
* [feature]strformat: add 2 'fmt' macros that use specified characters instead ↵Tomohiro2019-10-281-14/+25
| | | | | | | | | | of '{}' (#11748) * [feature]strformat: add 2 'fmt' macros that use specified chars instead of '{}' * strformat: revert documentation comments of `&` and 'fmt' * strformat: removed single open/close char variant of fmt
* Extent json.to testing to VM, add workrounds for VM bugs. (#12493)Arne Döring2019-10-281-50/+127
| | | fixes #12479
* Remove sentences referring to the graphics module (#12522)Jjp1372019-10-261-2/+1
|
* sequtils: replace deprecated 'random' call within example (#12515) [backport]Jjp1372019-10-251-1/+1
|
* Fix many broken links and prefer relative links within docs (#12463)Miran2019-10-2415-55/+57
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. * Prefer relative links for Nim documentation This is more friendly to those browsing the documentation without a network connection. The nim-doc package in Debian allows this, for example. Also, the domain name being used was not consistent. It could have been either nim-lang.org or nim-lang.github.io, and those reading the stable docs could have found themselves suddenly reading the devel docs instead. * koch.rst: remove link to nonexistent section * manual.rst: remove unintended link cast[T](0) is interpreted as a link to id 0 with text T, so escape the opening parentheses to display the intended output. * asyncstreams: replace unintended link with emphasis * Fix word wrapping
| * Fix word wrappingJjp1372019-10-224-14/+16
| |
| * asyncstreams: replace unintended link with emphasisJjp1372019-10-221-1/+1
| |
| * Fix many broken linksJjp1372019-10-2214-47/+47
| | | | | | | | | | | | 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.
* | [backport] Documentation Math module (#12460)Juan Carlos2019-10-241-0/+2
|/
* Merge branch 'devel' into IOSelector_unregister_fixDominik Picheta2019-10-2214-833/+824
|\
| * Docstring refined for the getSectionValue() (#12478) [backport]Artem V L2019-10-221-1/+1
| |
| * Namespace unittest enums to avoid name conflicts (#12468) [backport]ducdetronquito2019-10-201-14/+14
| | | | | | | | * [backport] Fixes: #12465 - Unittest - Namespace the usage of TestStatus enum to avoid name conflicts.
| * Revert "Fixes #12187 (#12321)" (#12447)Andreas Rumpf2019-10-183-3/+3
| | | | | | This reverts commit 00c31e87660d9db813871f5aa23661bf6b9bbdcb.
| * Improve htmlgen (#12452)Juan Carlos2019-10-181-0/+194
| |
| * [backport] fix type's case in random.nim (#12445)Miran2019-10-171-12/+12
| |
| * Refactor json macro (#12391)Arne Döring2019-10-172-639/+263
| | | | | | | | | | | | | | | | * closes #12316 * make tjsonmacro work at js target * closes #12289 * closes #11988 * also fixed gdb related stuff