npm.io
4.0.1 • Published 4 years ago

@combinatorics/permutation

Licence
AGPL-3.0
Version
4.0.1
Deps
0
Size
584 kB
Vulns
0
Weekly
0
Stars
3
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

@combinatorics/permutation

Symmetric group of order 3
User:Watchduck / CC BY-SA 4.0

Permutation library for JavaScript. See docs. Parent is js-algorithms.

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

import { next , reversed , identity } from '@combinatorics/permutation' ;
next( reversed( identity( 3 ) ) ) ; // [ 0 , 1 , 2 ]

License Version Tests Dependencies GitHub issues Downloads

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

Keywords