Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Iter ¶
func Iter(params ...[]interface{}) chan []interface{}
Iter takes interface-slices and returns a channel, receiving cartesian products
Example ¶
a := []interface{}{1, 2, 3} b := []interface{}{"a", "b", "c"} c := cartesian.Iter(a, b) // receive products through channel for product := range c { fmt.Println(product) }
Output: [1 c] [2 c] [3 c] [1 a] [1 b] [2 a] [2 b] [3 a] [3 b]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.