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 f3804fe commit 8172aedCopy full SHA for 8172aed
tp9/src/main/kotlin/fmt/kotlin/fundamentals/Cellar.kt
@@ -3,5 +3,9 @@ package fmt.kotlin.fundamentals
3
data class Cellar(
4
val bottles: List<Bottle>
5
) {
6
- fun describeBottles() = ""
+ fun describeBottles() = bottles.joinToString("\n") { bottle ->
7
+ bottle.run {
8
+ "Bouteille de ${name} de ${year}"
9
+ }
10
11
}
0 commit comments