summary refs log tree commit diff stats
path: root/lib/pure/collections
Commit message (Collapse)AuthorAgeFilesLines
* Add compute proc for SharedTable (#5385)Ruslan Mustakov2017-03-022-3/+52
|
* Various fixes to FutureStreams based on PR feedback.Dominik Picheta2017-02-261-1/+1
|
* Merge branch 'devel' into feature/async-streamsAraq2017-02-251-10/+31
|\
| * Fixed heapqueue.del for last elem (#5363)Yuriy Glukhov2017-02-101-10/+31
| |
* | Work around issue with queues. Refs #4773.Dominik Picheta2017-02-101-1/+1
|/
* reenabled clear test, made clear working (#5323)Arne Döring2017-02-021-2/+5
|
* Added heapqueue.del (#5289)Yuriy Glukhov2017-01-271-11/+35
|
* re additions for buffer (cstring) RE matching (#5117)jlp7652017-01-161-1/+1
| | | | | | | | | | | | | | | | | | * Replace expr with untyped * Add buffer (cstring) related procs Replace expr with untyped Replace testing assert() procs with doAssert() * make the string variants call the cstring variants in order to fight code size * Remove redundant proc * fix casting of cstring add init of variables (identified by verbosity:3) * Speed up - use pattern.e for exec() inline some procs
* Fix description of CountTable's smallest procPaweł Świątkowski2016-12-111-2/+2
|
* More workarounds for #5098Yuriy Glukhov2016-12-073-3/+11
|
* Workaround for #5098Yuriy Glukhov2016-12-051-4/+3
|
* Merge pull request #5044 from endragor/dequesAndreas Rumpf2016-11-282-1/+269
|\ | | | | Added deques module, deprecating queues
| * Added deques module, deprecating queuesRuslan Mustakov2016-11-242-1/+269
| |
* | Corrected test case for #5057.Yuriy Glukhov2016-11-271-3/+3
| |
* | Fixes #5057Yuriy Glukhov2016-11-261-12/+28
|/
* Fixes #5035Felix Krause2016-11-182-14/+13
|
* Fixes #4974Felix Krause2016-10-311-9/+15
|
* fixes #4940andri lim2016-10-271-1/+1
|
* Fixes #4946Felix Krause2016-10-241-0/+1
|
* Merge pull request #4935 from flyx/tablefixAndreas Rumpf2016-10-241-4/+37
|\ | | | | Table fixes. fixes #4901
| * Table fixes. fixes #4901Felix Krause2016-10-231-4/+37
| | | | | | | | | | | | | | | | * added `==` for OrderedTable, CountTable and the *Ref types * added missing documentation to all `==` procs * fixed clear() for OrderedTables, which did not work because `var` does not work well with `|` * added tests
* | fixes #4386Andreas Rumpf2016-10-231-2/+2
|/
* fixes #4844Araq2016-10-081-1/+5
|
* Allow compilation of sharedtables.nimcoffeepots2016-09-091-0/+2
| | | tableimpl uses {.oldimmediate.}, which is defined in system/inclrtl.
* fixes a critical tables bug that caused 'enlarge' to crash after 'add'Andreas Rumpf2016-09-052-11/+17
|
* Merge pull request #4367 from kierdavis/4365-tables-clearAndreas Rumpf2016-08-252-4/+5
|\ | | | | Improvements to tables.clear()
| * Add a fix for clear() on non-ref types by adding a missing 'var' annotation ↵Kier Davis2016-07-091-3/+3
| | | | | | | | | | | | | | | | to the type signature However, this fix won't take effect until a compiler bug (#4448) is fixed. Until then, the codebase functions identically to how it did before this commit (calls to clear() fail to compile for Table/OrderedTable/CountTable as the argument is immutable).
| * Fix clear() on CountTableKier Davis2016-07-091-1/+2
| | | | | | | | | | | | The record tuples used in CountData.data don't contain an 'hcode' member, unlike Table and OrderedTable, causing the existing clearImpl() implementation to break when attempting to assign to t.data[i].hcode.
* | Removed the use of .gensym pragma inside stdlib templatesRuslan Mustakov2016-08-231-8/+8
| |
* | expr and stmt are now deprecatedAndreas Rumpf2016-07-301-2/+2
| |
* | make nim bootstrap again for older versionsAndreas Rumpf2016-07-303-5/+7
| |
* | stdlib and compiler don't use .immediate anymoreAndreas Rumpf2016-07-294-29/+29
| |
* | Merge pull request #4463 from flyx/tables-equals-no-KeyErrorAndreas Rumpf2016-07-191-5/+4
|\ \ | | | | | | `==` in tables should not raise KeyError
| * | Use getOrDefault for tables.`==`Felix Krause2016-07-081-7/+5
| | |
| * | `==` in tables should not raise KeyErrorFelix Krause2016-07-071-2/+3
| |/ | | | | | | | | | | * With previous code, the compiler deduced that equalsImpl may raise a KeyError. While this could only actually happen in a nasty multi-threaded environment, I fixed the code so that it will never happen.
* | prepare Nim codebase for upcoming parser changesAndreas Rumpf2016-07-151-1/+1
| |
* | use table literal syntaxAxel Pahl2016-07-121-2/+2
| |
* | explain difference between Table and TableRef in tables.nimAxel Pahl2016-07-121-0/+33
| |
* | Fix #4422: Reset queue element on pop. Prevent NimVM confusion. Help GC.Matthew Baulch2016-07-111-0/+2
|/
* Update sets examples so they work again.Matthew Baulch2016-07-061-3/+3
|
* Merge pull request #4344 from ReneSac/queuesAndreas Rumpf2016-06-191-33/+184
|\ | | | | Enchanced random access support for queues among other changes
| * Remove high() and low() procs from queues moduleReneSac2016-06-161-13/+2
| | | | | | | | | | Just in case as they are said not overloadable. No deprecation because this is during a PR: those procs didn't exist before. Also update comment due to failed optimization attempt using copyMem() for POD datatypes.
| * Fixes for things pointed by Araq on the PRReneSac2016-06-161-27/+18
| |
| * Improved the documentation and miscelaneousReneSac2016-06-151-33/+102
| | | | | | | | | | | | | | | | | | Better bounds checking. Tried to make it and documentation comply with the conflicting style guides. Added example of usage at the top of the module as well as warnings on usage. Also fix the back() and internal englishOrdinal() proc from previous commit. Added {.discardable.} pragma for .pop(), when calling only for it's side effects. Sprinkled some unlikely() for optimization. Some new tests reflecting those changes.
| * Enchanced random access support for queuesReneSac2016-06-121-24/+126
| | | | | | | | | | | | Now queues support indexing, front() and back() operations and pairs iteration. Also modernized some of the code to use newer Nim features. Added the "add()" alias to "enqueue()", per nim's conventions (also fits better with pop())
* | attempt to fix a critical memory leak in Nim's collectionsAndreas Rumpf2016-06-152-0/+12
| |
* | Implement clear() for CountTableRef. Fixes #4325.Kier Davis2016-06-131-1/+1
|/
* Implements tables.clear.Dominik Picheta2016-06-022-5/+34
|
* moved random procs from math to its own module (breaking change)Andreas Rumpf2016-05-301-1/+1
|
* Introduce template withValue() for tables.nim too.cheatfate2016-05-271-0/+45
|