File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
aoc2020/aoc2020-kotlin/src/main/kotlin/de/havox_design/aoc2020/day21 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class AllergenAssessment(private var filename: String) {
4545
4646 dictionary
4747 .entries
48- .forEach { (allergen, possibleIngredients) ->
48+ .forEach { (allergen, possibleIngredients: Set < String > ) ->
4949 possibleIngredients
5050 .forEach {
5151 reversedDictionary.putIfAbsent(it, mutableSetOf ())
@@ -56,7 +56,7 @@ class AllergenAssessment(private var filename: String) {
5656 val solution = mutableMapOf<String , String >()
5757
5858 while (reversedDictionary.any { (_, value) -> value.size == 1 }) {
59- val (ingredient, possibleAllergens) = reversedDictionary
59+ val (ingredient, possibleAllergens: Set < String > ) = reversedDictionary
6060 .entries
6161 .first { (_, value) -> value.size == 1 }
6262 val allergen = possibleAllergens
You can’t perform that action at this time.
0 commit comments