Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 1.59 KB

File metadata and controls

10 lines (6 loc) · 1.59 KB

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