go-datastructures
go-datastructures copied to clipboard
A collection of useful, performant, and threadsafe Go datastructures.
diff should be int64 else it never less than 0
Hi guys, is there any plan to provide a [double-ended queue](https://en.wikipedia.org/wiki/Double-ended_queue) implementation in this package?
Java 5 introduced: https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CopyOnWriteArrayList.html It's very efficient if you have a List where you mostly need to iterate the ArrayList and don't modify it too often. I used this data...
go get github.com/Workiva/go-datastructures/... ``` # github.com/Workiva/go-datastructures/btree/immutable D:\go_project\src\github.com\Workiva\go-datastructures\btree\immutable\node.go:123:26: multiple-value uuid.NewV4() in single-value context D:\go_project\src\github.com\Workiva\go-datastructures\btree\immutable\node.go:300:22: multiple-value uuid.NewV4() in single-value context D:\go_project\src\github.com\Workiva\go-datastructures\btree\immutable\node.go:323:22: multiple-value uuid.NewV4() in single-value context D:\go_project\src\github.com\Workiva\go-datastructures\btree\immutable\node.go:424:17: multiple-value uuid.NewV4() in single-value context...
Hi, I saw the lack of a proper stack implementation in your repository, so I made one according to your guidelines & based on your other data structure implementations. My...
Here's a minimal reproducing example using Go 1.9 on macOS Sierra. I couldn't break it down any further. It will fail pretty much every time, but at a different loop...
There is no opportunity to iterate over the nodes of ```palm.Btree```: https://github.com/Workiva/go-datastructures/blob/master/btree/palm/interface.go#L51 Please consider adding of this method.
Hi. https://github.com/Workiva/go-datastructures/blob/6e483a429c7b8d45d5487bcad780d0caa3a82146/cache/cache.go#L156 `c.keyList.Back()` returns `nil` if the list is empty.
How do I use this library? :-)
Change the package name as package merge does not exist any more