how would I do a cartesian product of two lists in...
# getting-started
p
how would I do a cartesian product of two lists in Kotlin?
Copy code
listOf("a", "b")
Copy code
listOf(1,2,3)
result:
Copy code
[(a, 1), (a, 2), (a,3), (b, 1), (b, 2), (b, 3)]