Node
public class Node<T>
A generic Node implementation for items to be held in a linked list data structure.
-
Declaration
Swift
public var value: T
-
Declaration
Swift
public var next: Node<T>?
-
Declaration
Swift
public var previous: Node<T>?
-
The default init.
Declaration
Swift
public init(value: T)
Parameters
value
The object of type T to append to the
LinkedList
.