mirror of
https://github.com/gonum/gonum.git
synced 2025-10-06 23:52:47 +08:00
stat/combin: allow user allocation for Cartesian product
This commit is contained in:
@@ -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++
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user