We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f80d759 commit 2280d4aCopy full SHA for 2280d4a
tp9/src/main/kotlin/fmt/kotlin/fundamentals/Cellar.kt
@@ -37,6 +37,12 @@ data class Cellar(
37
}
38
39
companion object {
40
- fun fillCellar(cellar: Cellar, bottles: List<Bottle>, tanks: List<Tank>): Cellar = TODO()
+ fun fillCellar(cellar: Cellar, bottles: List<Bottle>, tanks: List<Tank>): Cellar = cellar
41
+ .apply {
42
+ bottles.forEach { addBottle(it) }
43
+ }
44
45
+ tanks.forEach { addTank(it) }
46
47
48
0 commit comments