pushFront method
- T value
Adds an element to the front of the list.
Implementation
void pushFront(T value) {
_head = _ForwardListNode<T>(value, _head);
_length++;
}
Adds an element to the front of the list.
void pushFront(T value) {
_head = _ForwardListNode<T>(value, _head);
_length++;
}