This library implements the iterator pattern in order to hide the data structure that work for storing your data.
Download the minimized library here (right click and save as...);
Include the file in your project;
Start to use it as any other class.
var listA = new DoubleLinkedList(); var listB = new DoubleLinkedList(); listA.fromArray([0, 1]); listB.fromArray([2, 3]); listA.join(listB); listA.toArray(); // [0, 1, 2, 3]
Battistella Stefano, [email protected]