I hereby claim:
- I am rayhatfield on github.
- I am rayhatfield (https://keybase.io/rayhatfield) on keybase.
- I have a public key ASCCvANbUrpUTG-br3EFOmpIKmORG07KtvbXrorBToAedQo
To claim this, I am signing this object:
function permutations(values, length = values.length, result = values.map((v) => [v])) { | |
if (length < 2) { | |
return result; | |
} | |
return permutations(values, length - 1, result.reduce((acc, v) => { | |
values.forEach((n) => acc.push([...v, n])); | |
return acc; | |
}, [])); | |
} |
pre code { | |
tab-size: 3; | |
} |
I hereby claim:
To claim this, I am signing this object: