diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/operations/Operation.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/operations/Operation.kt index 5a90927..942645e 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/operations/Operation.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/domain/entities/operations/Operation.kt @@ -19,7 +19,7 @@ val List.canGrowSimpleWay: Boolean val List.containsSimpleGrows: Boolean get() = firstOrNull { it == FiveGrowNine || it == NineGrowFive || it is GrowCustom } != null -private val operations = listOf( +private val operations: List = listOf( TwoGrowFour, FourGrowTwo, OneGrowEight, @@ -28,9 +28,9 @@ private val operations = listOf( SevenGrowSix, FiveGrowNine, NineGrowFive, - (1 .. 9).map { + *(1 .. 9).map { GrowCustom(it.toByte()) - } + }.toTypedArray() ) suspend fun availableConverts(numbers: MutableList, operations: List): List {