Home Manual Reference Source

: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
...

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size