Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List[T any] struct { // contains filtered or unexported fields }
List is a generic doubly-linked list whose nodes can store any data type. It allows retrieving pointers to the first and last nodes.
type Node ¶
type Node[T any] struct { // contains filtered or unexported fields }
Node is a generic data structure that contains three fields: references to the previous and to the next node in the list, and one data field.
func (*Node[T]) Copy ¶
Copy copies the given node and returns a new one. It does not do a deep copy of T.
Click to show internal directories.
Click to hide internal directories.