Advanced containers for D
To use this package, run the following command in your project's root directory:
Advanced data containers for D.
Currently available containers
An array-backed data structure that enforces the elements stored within itself to be in order. This eliminates the need for frequent reordering if a regular array was used. Has optimizations to reduce the search and insertion times.
Has random access for indexing, elements can be only put into the list with the
alias cmp can be used both to set how the elements are compared and the way of ordering
Using as a sorted set
The template of the SortedList can disable duplicates, which will also enable certain functions, like removal by element.
Implements an AVL-tree backed associative array. Automatically rebalances itself after each insertion and removal, if imbalance is greater or equal than 2. The more elements the tree has, the better the optimization will be.
Accessing is done through keys, and accessing an n-th element needs some computation.
Tree traversal done through
opApplyReverse() functions, accessing elements in order when iterated with
alias less can be used to both set how the keys are compared and whether lesser or greater elements are on the left hand side.
Behavior is changed if E set to void, in that case keys will be the only way the TreeMap stores data, like a regular AVL-tree, or a treeset.
Implements a hashmap using TreeMap as a backend, and MurMurHash3/32 as the hashing algorithm. Future versions will allow using LinkedList as a backend if needed.
Implements a hashset, similarly to hashmap. Operation is done through set operators only, as it only stores the keys of the hashed elements.
A list with pretty low insertion cost. Ideal for applications where frequent reordering is needed. Can work as a set too by setting
- Registered by László Szerémi
- 0.2.0-beta released 18 days ago
- Copyright © 2020, laszl
0.2.0-beta 2020-May-09 0.2.0-alpha 2020-May-05 0.1.0 2020-Apr-08 0.1.0-alpha 2020-Apr-07 ~master 2020-May-09
- Download Stats:
0 downloads today
0 downloads this week
6 downloads this month
8 downloads total
- Short URL: