Documentation ¶
Overview ¶
Package sets provides functions for operations on sets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CartesianProduct ¶
CartesianProduct returns a channel that lists all the combinations of elements from the given setSizes to produce the Cartesian Product of all the values in the sets.
For example:
CartesianProduct([]int{3, 2})
Will produce the following int slices:
{2, 1}, {1, 1}, {0, 1}, {2, 0}, {1, 0}, {0, 0},
Each setSize must be greater than one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.