Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenStack ¶
type GenStack[T any] struct { // contains filtered or unexported fields }
GenStack implements a generational stack.
GenStack works as common stack except for the fact that all elements in the older generation are guaranteed to be popped before any element in the newer generation. New elements are always pushed to the current (newest) generation.
We could also say that GenStack behaves as a stack in case of a single generation, but it behaves as a queue of individual generation stacks.
Click to show internal directories.
Click to hide internal directories.