arraypermutation-node

0.0.3 • Public • Published

Build Status

permutation

make permutation of a array given.

Install

This method permutate the item in a array given

$ npm install arraypermutation-node

Usage

const permutate  = require('arraypermutation-node')
permutate.right([1,2]) // -> [2,1]
permutate.right([1,2,3,4,5,6]) // -> [6,1,2,3,4,5]  
permutate.left([1,2]) // -> [2,1]
permutate.left([1,2,3,4])// -> [2,3,4,1]
permutate.left([1]) // [1]
permutate.right([1]) // [1] 

API Documentation permutation -> object

permutation.right(array) -> array

The param is the right what will be permutated to right. The array is passed by reference.

permutation.left(array) -> array

The param is the left what will be permutated to left. The array is passed by reference.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.30latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i arraypermutation-node

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

5.56 kB

Total Files

7

Last publish

Collaborators

  • cereceres