cartesian_product 1.0.0
cartesian_product: ^1.0.0 copied to clipboard
Cartesian product of any number of lists.
example/cartesian_product_example.dart
import 'package:cartesian_product/cartesian_product.dart';
void main() {
print(cartesianProduct(
[
['a', 'b', 'c'],
['1', '2'],
],
)); // prints [[a, 1], [a, 2], [b, 1], [b, 2], [c, 1], [c, 2]]
}