stat/combin: allow user allocation for Cartesian product

This commit is contained in:
Dan Kortschak
2019-10-24 19:27:42 +10:30
parent 7e1144f373
commit f54cad9e6d
3 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ func ExampleCartesianGenerator() {
// Now loop over all products.
var i int
for gen.Next() {
fmt.Println(i, gen.Product())
fmt.Println(i, gen.Product(nil))
i++
}