Node
class Node
A node in the doubly linked list storing the element and links to adjacent nodes.
-
The stored element value. Mutable.
Declaration
Swift
public var element: Element -
Next node in the list (closer to the front).
Declaration
Swift
public var next: Node? -
Previous node in the list (closer to the back).
Declaration
Swift
public var previous: Node? -
Initializes a new node with key, value and optional links.
Declaration
Swift
public init(element: Element, next: Node? = nil, previous: Node? = nil)
View on GitHub