thanksforallthefish
05/25/2020, 12:06 PMcartesianProduct
?
listOf(1, 2, 3, 4).cartesianProduct() shouldContainExactlyInAnyOrder listOf(
listOf(1),
listOf(2),
listOf(3),
listOf(4),
listOf(1, 2),
listOf(1, 3),
listOf(1, 4),
listOf(2, 3),
listOf(2, 4),
listOf(3, 4),
listOf(1, 2, 3),
listOf(1, 2, 4),
listOf(1, 3, 4),
listOf(2, 3, 4),
listOf(1, 2, 3, 4)
)
permutations? combinations?
I know it is something, but cannot figure out whatthanksforallthefish
05/25/2020, 12:26 PMmarstran
05/25/2020, 12:42 PMpowerSet()
? The power set should include the empty set as well though.marstran
05/25/2020, 12:42 PMthanksforallthefish
05/25/2020, 12:49 PMMatteo Mirk
05/25/2020, 1:52 PM