solist-js
Self-organizing list using the transpose heuristic
Installation
npm install solist-js
Example
var SOList = ; // Create new list.var list = ; listsize; // Returns number of elements in list.list; // Returns true if list is empty. False otherwise.list; // Returns element at key or undefined if not found. Expects key to be a String.list; // Adds key with value foo. Expects key to be a String, and value to be of any type.list; // Deletes key and its value from the list. Expects key to be a string.
Test
npm run test