1.0.0 • Published 3 years ago

@set-theory/powerset v1.0.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
3 years ago

:bowling: @set-theory/powerset

Powerset operator for JavaScript. See docs.

:warning: Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

import {count} from '@iterable-iterator/count';
import {powerset as subsets} from '@set-theory/powerset';

const naturalNumbers = count(0n, 1n);

for (const subset of subsets(naturalNumbers)) ... ;

License Version Tests Dependencies Dev dependencies GitHub issues Downloads

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