Kone
0.0.0-dev-1
common
kone.enumerativeCombinatorics
/
com.lounres.kone.combinatorics.enumerative
Package-level
declarations
Functions
Functions
all
Combinations
Link copied to clipboard
fun
<
E
>
List
<
E
>
.
allCombinations
(
)
:
Sequence
<
List
<
E
>
>
all
Permutations
Link copied to clipboard
fun
<
E
>
List
<
E
>
.
allPermutations
(
)
:
Sequence
<
List
<
E
>
>
cartesian
Power
Link copied to clipboard
infix
fun
<
E
>
List
<
E
>
.
cartesianPower
(
power
:
Int
)
:
Sequence
<
List
<
E
>
>
cartesian
Product
Link copied to clipboard
fun
<
E
>
cartesianProduct
(
vararg
collections
:
List
<
E
>
)
:
Sequence
<
List
<
E
>
>
fun
<
E
>
cartesianProduct
(
collections
:
List
<
List
<
E
>
>
)
:
Sequence
<
List
<
E
>
>
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
>
>
combinations
Link copied to clipboard
fun
<
E
>
List
<
E
>
.
combinations
(
k
:
Int
=
size
)
:
Sequence
<
List
<
E
>
>
permutations
Link copied to clipboard
fun
<
E
>
List
<
E
>
.
permutations
(
k
:
Int
=
size
)
:
Sequence
<
List
<
E
>
>