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

Method cartesianProduct

output/java_guava/1.4.17/Sets.java:1154–1156  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
asListMethod · 0.45

Tested by

no test coverage detected