Kone
0.0.0-dev-1
common
kone.enumerativeCombinatorics
/
com.lounres.kone.combinatorics.enumerative
/
cartesianProduct
cartesian
Product
fun
<
E1
,
E2
>
cartesianProduct
(
collection1
:
Iterable
<
E1
>
,
collection2
:
Iterable
<
E2
>
)
:
Sequence
<
Pair
<
E1
,
E2
>
>
fun
<
E1
,
E2
,
E3
>
cartesianProduct
(
collection1
:
Iterable
<
E1
>
,
collection2
:
Iterable
<
E2
>
,
collection3
:
Iterable
<
E3
>
)
:
Sequence
<
Triple
<
E1
,
E2
,
E3
>
>
fun
<
E
>
cartesianProduct
(
collections
:
List
<
List
<
E
>
>
)
:
Sequence
<
List
<
E
>
>
fun
<
E
>
cartesianProduct
(
vararg
collections
:
List
<
E
>
)
:
Sequence
<
List
<
E
>
>