'use strict';

const transformGenerate = require('./transform-generate');
const transformApply = require('./transform-apply');

module.exports = array => transformGenerate(array.length).map(transform => transformApply(array, transform)).filter(array => !array.duplicate);

'use strict';

const permutationSimpleByTransform = require('./simple-by-transform');

module.exports = array => permutationSimpleByTransform(array).filter(array => !array.duplicate);

Refactor permutation: remove duplicate code
Refactor permutation: remove duplicate code
