Return the number of elements in the list
number of elements in the list
Append new element to the end of the list
new element to be appended
Insert new element to the list after elementBefore
new element to be inserted
OptionalelementBefore: LinkedListElementelement in the list to insert after it
Remove element from the list
element to be removed 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 circular bidirectional linked list LinkedListElement - object of any type that has properties next and prev.