Skip to content

Files

Latest commit

a271208 · Sep 4, 2022

History

History
This branch is 64 commits ahead of, 37 commits behind type-challenges/type-challenges:main.

00296-medium-permutation

Permutation medium #union

by Naoto Ikuno @pandanoir

Take the Challenge    简体中文 日本語 한국어

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']

Back Share your Solutions Check out Solutions