js-sll
Singly linked list code bricks for JavaScript. Parent is aureooms/js-data-structures.
let head = sll ; // { next : Node , value : 9 }
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
Install
jspm
jspm install github:aureooms/js-sll# orjspm install npm:aureooms-js-sll
duo
No install step needed for duo!
component
component install aureooms/js-sll
bower
bower install aureooms-js-sll
ender
ender add aureooms-js-sll
jam
jam install aureooms-js-sll
spm
spm install aureooms-js-sll --save
npm
npm install aureooms-js-sll --save
Require
jspm
let sll = ;// or;
duo
let sll = ;
component, ender, spm, npm
let sll = ;
bower
The script tag exposes the global variable sll
.
Alternatively, you can use any tool mentioned here.
jam
;
Use
let head = sll ; // { next : Node , value : 9 } headvalue ; // 9headnextvalue ; // 2headnextnextvalue ; // 5headnextnextnext ; // null for let value of sll // yields 9 then 2 then 5