questions/00296-medium-permutation/README.md
Implement permutation type that transforms union types into the array that includes permutations of unions.
type perm = Permutation<'A' | 'B' | 'C'>; // ['A', 'B', 'C'] | ['A', 'C', 'B'] | ['B', 'A', 'C'] | ['B', 'C', 'A'] | ['C', 'A', 'B'] | ['C', 'B', 'A']
<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/296/answer" target="_blank"></a> <a href="https://tsch.js.org/296/solutions" target="_blank"></a> <!--info-footer-end-->