MCPcopy Create free account
hub / github.com/antlr/codebuff / cartesianProduct

Method cartesianProduct

output/java_guava/1.4.17/Lists.java:473–475  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
asListMethod · 0.45

Tested by

no test coverage detected