Returns every possible list that can be formed by choosing one element from each of the given lists in order; the "n-ary Cartesian product " of the lists. For example: {@code Lists.cartesianProduct(ImmutableList.of( Immutab
(List<? extends List<? extends B>> lists)
| 471 | |
| 472 | |
| 473 | public static <B> List<List<B>> cartesianProduct(List<? extends List<? extends B>> lists) { |
| 474 | return CartesianList.create(lists); |
| 475 | } |
| 476 | |
| 477 | /** |
| 478 | * Returns every possible list that can be formed by choosing one element |