generic
generic copied to clipboard
A collection of generic data structures written in Go.
Attempting to run ``` go get github.com/zyedidia/generic/prope ``` Results in the following error: ``` go: module github.com/zyedidia/generic@upgrade found (v1.2.1), but does not contain package github.com/zyedidia/generic/prope ``` I can retrieve the...
One should use heap.FromSlice to specifify the backing slice. Otherwise this will modify the expanded slice.
* Changed the inner representation of entries in HashMap * Added the Keys() and Values() methods to both HashMap and HashSet data structures * Did benchmarks on the results and...
I think this will be a very handful feature and such a method is really common and is provided by other languages such as Java or Python for example. Let...
There exists different algorithm to handle collisions for the linear probing strategy. One interesting an practicable way is the Robin Hood hashing. good illustration: https://programming.guide/robin-hood-hashing.html c++ implementation: https://github.com/Tessil/robin-map/blob/master/include/tsl/robin_hash.h I created...
Is there a plan to support `iterator` and common functional operations such as `map` `reduce` `filter` `scan` `fold`...
`avl.New[int, string](g.Less[int])` We should be able to use a custom comparator for sorting elements but currently that is not supported This can be accomplished by adding the following func in...