A collection of generic data structures written in Go.
Changelog:
trie
.trie
remove now deletes nodes recursively instead of just marking them as removed.hashset
no longer requires its key to implement comparable
.Changes:
multimap
data structure.Clamp
function.cache
.Changes:
NewMap
renamed to New
for better naming consistency.This is the initial release of this package now that Go 1.18 has been released. There is no longer an iter
package, and data structures have an Each
function for iterating over elements. In the future an iterator API may be used when it is clearer how best to implement it.