Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 1.19 KB

File metadata and controls

10 lines (7 loc) · 1.19 KB

CartesianProduct medium #union

by jazelly @jazelly

Take the Challenge

Given 2 sets (unions), return its Cartesian product in a set of tuples, e.g.

CartesianProduct<1 | 2, 'a' | 'b'> 
// [1, 'a'] | [2, 'a'] | [1, 'b'] | [2, 'b']

Back Share your Solutions Check out Solutions