@functional-data-structure/persistent-stack

Persistent stack data structures for JavaScript

Usage no npm install needed!

<script type="module">
  import functionalDataStructurePersistentStack from 'https://cdn.skypack.dev/@functional-data-structure/persistent-stack';
</script>

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

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

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