Package Exports
- florest
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (florest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
florest
Simple Implementation of Linked List and Tree
npm install florest
var Florest = require('florest')
#####You can create a linked list with:
var singly = Florest.Link.create("singly", "List Name");
or
var doubly = Florest.Link.create("doubly", "List Name");
#####You can then manipulate your list with add(value), remove(position) or get(position):
singly.add(1);
singly.add(2);
singly.add(3);
singly.remove(2);
var list_at_2 = singly.get(2);
#####You can display all nodes in the list with display():
singly.display();