给定两个集合(元组),返回它们的笛卡尔乘积,以元组的集合形式表示。
例如:
CartesianProduct<1 | 2, 'a' | 'b'> // expected to be [1, 'a'] | [2, 'a'] | [1, 'b'] | [2, 'b']
TypeScript