Optionalfirst: LinkedListElementFirst element of the list
Optionallast: LinkedListElementLast element of the list
Return the number of elements in the list
number of elements in the list
Append a new element to the end of the list
Insert a new element into the list after elementBefore
OptionalelementBefore: LinkedListElementRemove an element from the list
Reverse the linked list
Return an array of elements from start to end If start or end is not defined, take the first as the start, the last as the end
Optionalstart: LinkedListElementStarting position (optional)
Optionalend: LinkedListElementEnding position (optional)
Array containing elements
StatictestThrow an error if a circular loop is detected in the linked list
Element to start iteration
Class implements bidirectional non-circular linked list.
LinkedListElement - object of any type that has properties next and prev.