limited-permutation

0.0.2 • Public • Published

limited-permutation

Generate a limited permutation, for NodeJS

Install

npm install limited-permutation

Usage

const permutation = require('limited-permutation');
 
const result = permutation('abc', 2);
console.log(result); 

STDOUT is below;

[
  [ 'a', 'a' ],
  [ 'a', 'b' ],
  [ 'a', 'c' ],
  [ 'b', 'a' ],
  [ 'b', 'b' ],
  [ 'b', 'c' ],
  [ 'c', 'a' ],
  [ 'c', 'b' ],
  [ 'c', 'c' ]
]

Author

ktrysmt

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i limited-permutation

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ktrysmt