npm install easy-circular-list
var CircularList = require('easy-circular-list');
var data = [1, 2, 3];
var list = new CircularList(data);
Iterates the pointer of the list forward
Iterates the pointer of the list forward
Iterates the pointer of the list backward
Iterates to the first element
Iterates to the end of the list
Returns list size
Returns current value
Iterates to next and returns the value
Iterates to previous and returns the value
Returns an array representation of the list
Adds a value to the list
Removes a value from the list, updates the pointer accordingly
This library is published under Apache 2 License