https://github.com/computational-combinatorics/n-permutations
:zebra: Set n-permutations for JavaScript
https://github.com/computational-combinatorics/n-permutations
Last synced: 2 months ago
JSON representation
:zebra: Set n-permutations for JavaScript
- Host: GitHub
- URL: https://github.com/computational-combinatorics/n-permutations
- Owner: computational-combinatorics
- License: agpl-3.0
- Created: 2021-05-05T09:34:50.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-19T19:39:01.000Z (10 months ago)
- Last Synced: 2025-11-27T14:43:33.773Z (7 months ago)
- Language: JavaScript
- Homepage: https://computational-combinatorics.github.io/n-permutations
- Size: 2.62 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
:zebra: [@combinatorics/n-permutations](https://computational-combinatorics.github.io/n-permutations)
==
Set n-permutations for JavaScript.
See [docs](https://computational-combinatorics.github.io/n-permutations/index.html).
> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
import {permutations} from '@combinatorics/n-permutations';
permutations("ABCD", 2); // AB AC AD BA BC BD CA CB CD DA DB DC
import {range} from '@iterable-iterator/range';
permutations(range(3), 3); // 012 021 102 120 201 210
```
[](https://raw.githubusercontent.com/computational-combinatorics/n-permutations/main/LICENSE)
[](https://www.npmjs.org/package/@combinatorics/n-permutations)
[](https://github.com/computational-combinatorics/n-permutations/actions/workflows/ci.yml?query=branch:main)
[](https://github.com/computational-combinatorics/n-permutations/network/dependencies)
[](https://github.com/computational-combinatorics/n-permutations/issues)
[](https://www.npmjs.org/package/@combinatorics/n-permutations)
[](https://codeclimate.com/github/computational-combinatorics/n-permutations/issues)
[](https://codeclimate.com/github/computational-combinatorics/n-permutations/trends/churn)
[](https://codecov.io/gh/computational-combinatorics/n-permutations)
[](https://codeclimate.com/github/computational-combinatorics/n-permutations/trends/technical_debt)
[](https://computational-combinatorics.github.io/n-permutations/source.html)
[](https://bundlephobia.com/result?p=@combinatorics/n-permutations)