I want to have a binary operator cross (cross-product/cartesian product) that operates with traversables in Scala:
cross
val x = Seq(1, 2) val y = Lis
cross x_list and y_list with:
x_list
y_list
val cross = x_list.flatMap(x => y_list.map(y => (x, y)))