This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.reflect.ClassTag | |
object CartesianProduct { | |
/** | |
* Given an array containing a partial Cartesian product, and an array of | |
* items, return an array adding the list of items to the partial | |
* Cartesian product. | |
* | |
* {{{ | |
* val partialProduct = Array(Array(1, 4), Array(1, 5), Array(2, 4), Array(2, 5)) |