@functional-data-structure/persistent-stack
v1.0.0
Published
Persistent stack data structures for JavaScript
Downloads
22
Readme
:icecream: @functional-data-structure/persistent-stack
Persistent stack data structures for JavaScript. See docs.
:warning: The code requires
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {empty, from, isEmpty, push, pop, peek, iter} from '@functional-data-structure/persistent-stack';
let stack = from('abc');
let values = [...iter(stack)].join(''); // cba
...