4 ms·
It does have a doubly-linked list which can easily serve as a stack, though. And it has a heap which is a poor man's replacement for some uses of tree. I've fou
by christophilus 5y ago
It does have a doubly-linked list which can easily serve as a stack, though. And it has a heap which is a poor man's replacement for some uses of tree. I've found that I can get quite a bit farther with the built-in Go slices, maps, and lists than I thought.
But yeah. Now that generics are in, I do hope they add a handful of common collections.
[0] https://pkg.go.dev/container/list@go1.17.6 https://pkg.go.dev/container/list@go1.17.6
[1] https://pkg.go.dev/container/heap@go1.17.6 https://pkg.go.dev/container/heap@go1.17.6
[2] https://pkg.go.dev/container/ring@go1.17.6 https://pkg.go.dev/container/ring@go1.17.6