✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що робить функція
private val menuData = File("data/tavern-menu-data.txt")
.readText()
.split("\n")
private val menuItems = menuData.map{ menuEntry ->
val (_, name, _) = menuEntry.split(",")
name
}