Returns every possible list that can be formed by choosing one element from each of the given sets in order; the "n-ary Cartesian product " of the sets. For example: {@code Sets.cartesianProduct(ImmutableList.of( ImmutableS
(List<? extends Set<? extends B>> sets)
| 1152 | |
| 1153 | |
| 1154 | public static <B> Set<List<B>> cartesianProduct(List<? extends Set<? extends B>> sets) { |
| 1155 | return CartesianSet.create(sets); |
| 1156 | } |
| 1157 | |
| 1158 | /** |
| 1159 | * Returns every possible list that can be formed by choosing one element |