From 21729c4e64a140c075f838b4c3dff35ce2496249 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 7 Sep 2018 21:03:59 +0800 Subject: [PATCH] fix of operations list --- .../domain/entities/operations/Operation.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {