cartesian_product 1.0.0 copy "cartesian_product: ^1.0.0" to clipboard
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]]
}
0
likes
150
points
40
downloads

Publisher

verified publishermartinsellergren.dev

Weekly Downloads

Cartesian product of any number of lists.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on cartesian_product