summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Remove support for named procs with sugar.=> (#17220)konsumlamm2021-03-051-10/+0
| | | | | | * Add docs & tests for named procs with sugar.=> * Remove support for named procs in sugar.=> * Resolve conflict * Fix test
* follow up #17165 (#17262)flywind2021-03-041-3/+2
|
* Added assertion to clamp (#17248)Jason Beetham2021-03-041-0/+2
| | | Co-authored-by: flywind <xzsflywind@gmail.com>
* reuse jsffi in json module (#17165)flywind2021-03-041-20/+7
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * reuse jsffi * move js json coverage
* use .. warning:: (#17226)flywind2021-03-044-11/+10
| | | | | | | * remove unnecessary when statement * remove outdated codes * use warnings
* Added math.clamp for slice clamping (#17246)Jason Beetham2021-03-031-0/+10
| | | | | | | * Added math.clamp for slice clamping * Added inline to math.clamp * Cleaned up math.clamp + test
* https://github.com/nim-lang/Nim/pull/15826/files#r585368355 (#17233)Juan Carlos2021-03-031-2/+3
|
* Use readable escape sequences (#17241)Clyybber2021-03-031-2/+2
|
* Replace double backticks with single backticks - Part 5 out of ~8 (#17217)Danil Yarantsev2021-03-011-232/+232
| | | Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Replace double backticks with single backticks - Part 4 out of ~7 (#17216)Danil Yarantsev2021-03-015-120/+120
|
* use `-r:off` for runnableExamples that should compile but not run (#17203)Timothee Cour2021-03-013-27/+25
| | | | | * use -r:off for runnableExamples that should compile but not run * use -r:off in other RT disabled tests
* Replace double backticks with single backticks - Part 3 out of ~7 (#17207)Danil Yarantsev2021-02-285-159/+159
|
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-2827-89/+89
|
* Fix unicode.split with seperators examples (#17176)zetashift2021-02-261-58/+25
| | | | | | | | | | | | | | | | | | | | | | * Fix unicode.split with seperators examples https://nim-lang.org/docs/unicode.html#split.i%2Cstring%2CRune%2Cint didn't work with the set constructor `{}` so replaced it with a string that's converted to an openArray compatible type containing `Rune`s. * Add runnableExamples to unicode.split * Add runnableExamples to split with single separator too * Simplify runnableExamples unicode.split * Improve the rest of the runnableExamples with the simplified code * Simplify runnableExamples of unicode.split even more * Formatted unicode.split example * Update lib/pure/unicode.nim Co-authored-by: zetashift <rishi2@laptop.localdomain> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* hashes: support object default hash (#17175)Timothee Cour2021-02-261-17/+13
|
* improve docs for sugar.collect (#17188)Timothee Cour2021-02-261-24/+29
|
* clarify the docs of existsOrCreateDir a bit (#17182)flywind2021-02-251-4/+3
| | | | | | | * remove unnecessary when statement * remove outdated codes * clarify the docs a bit
* refs #17114: workaround for arm64 which should segfault but does not (#17178)Timothee Cour2021-02-251-0/+2
| | | | | | | * refs #17114: workaround for arm64 which should segfault but does not * fixup * Update lib/std/wrapnils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* mark inline (#17180)flywind2021-02-241-2/+2
|
* use single backtick (#17181)flywind2021-02-2410-381/+381
|
* `std/options`: `$some(3)` is now `"some(3)"`, etc. (#17147)Timothee Cour2021-02-241-9/+15
| | | | | | | * std/options: $some(3) is now "some(3)", not "Some(3)", `$none(int)` is now `"none(int)"` instead of `"None[int]"` * fix tests * disable optionsutils
* remove deprecated stuff in unittest module (#17156)flywind2021-02-241-38/+30
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * remove deprecated stuff in testament * fix
* add strbasics.strip (#16280)flywind2021-02-241-0/+1
|
* [stdlib] make cookies module modern (#17116)flywind2021-02-241-13/+28
| | | | | | * update cookies module * introduce sameSite.Default Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
* fixes yet another SSL problem on Windows [backport:1.2] (#17167)Andreas Rumpf2021-02-241-1/+1
|
* use single backtick (#17166)flywind2021-02-2312-305/+305
|
* add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)Timothee Cour2021-02-231-0/+11
| | | | | | | * add enumutils.items for enum with holes * changelog * ref in lib.rst * use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept * address comment: rename back to enum with holes
* A few rst doc fixes (#17151)Danil Yarantsev2021-02-231-1/+1
| | | | | * Fix a couple of rst formatting issues * no need for the extra space
* Improve the ropes module (#17145)konsumlamm2021-02-221-63/+47
| | | | | | | | | | | | | | * Improve ropes module Improve wording Update runnableExamples Add index bound check for `[]` Minor format changes * Update tests/stdlib/tropes.nim Run on C & JS target Test in VM Add tests for `[]`
* fix #15215 (#17142)rockcavera2021-02-221-5/+12
| | | | | | | | | | | | | | | | * fix 15215 * fix test * end line * Update tests/stdlib/tnetconnect.nim Co-authored-by: flywind <xzsflywind@gmail.com> * Update lib/pure/net.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add example for pattern matching on options (#17120)konsumlamm2021-02-221-21/+49
| | | | | | | | | | | * Add example for pattern matching on options * Use code-block * Apply suggestions * Use block comments * Fix example
* fix prelude regression refs #16238: `include prelude` doesn't interfere with ↵Timothee Cour2021-02-221-12/+16
| | | | | | | | | `nim doc` (#17111) * fix bug1 from #16238 nim doc now works with include prelude * fix for windows * fixup
* remove outdated codes (#17140)flywind2021-02-222-2/+0
| | | | | * remove unnecessary when statement * remove outdated codes
* make copySign for js consistent with other backends (#16609)Timothee Cour2021-02-221-15/+30
| | | | | | * make copySign work more robustly in js * improve tests * improve tests/vm/tcastint.nim
* use single backtick (#17141)flywind2021-02-215-35/+35
|
* remove unnecessary when statement (#17135)flywind2021-02-211-12/+7
|
* use single backtick (#17133)flywind2021-02-215-91/+91
|
* move prelude so that `include std/prelude` also works (#17110)Timothee Cour2021-02-201-0/+24
| | | | | * move prelude so that `include std/prelude` also works * add test
* Improve the strformat module (#17106)konsumlamm2021-02-201-180/+159
| | | | | | | | | | | | | | | | | | | | | | * Improve the strformat module Improve documentation Use runnableExamples * Fix overflow error for low(int64) Add test * Use assert in runnableExamples * Improve tstrformat Put tests in proc & test VM Put tests in blocks Add c, js targets * Use doAssert in tests * Disable JS & VM tests
* uri: document removeDotSegments, add tests, show failure modes (#17064)Timothee Cour2021-02-201-1/+31
| | | | * uri: document removeDotSegments, add tests, show failure modes * address comments
* use single backtick (#17115)flywind2021-02-201-5/+5
|
* add example of hashing an object by all of its fields with `fields` (#16643)dawidkotlin2021-02-191-0/+14
| | | | | | | | | | | | * add example of hashing an object by all of its fields with `fields` * Update lib/pure/hashes.nim * Update lib/pure/hashes.nim * Update lib/pure/hashes.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* use single backtick (#17100)flywind2021-02-181-1/+1
|
* Improve documentation for options (#17036)konsumlamm2021-02-181-130/+104
|
* fixes #16585 (#17074)Andreas Rumpf2021-02-181-2/+17
|
* [nodejs backend] paramStr, paramCount (#17082)flywind2021-02-181-9/+33
|
* fix #17078 csources generation (#17079)Timothee Cour2021-02-181-1/+1
| | | | | * fix #17078 csources generation * fixup
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-177-9/+13
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* fix math.frexp function signature (#16725)flywind2021-02-171-36/+52
|
* clean up old codes (#17071)flywind2021-02-172-5/+2
|