logo

Crowdly

Browser

Add to Chrome

Що робить функція map у наведеному нижче коді?   private val menuData =...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Що робить

функція

map у наведеному нижче коді?

 

private val menuData =

File("data/tavern-menu-data.txt")

.readText()

.split("\n")

 

private val menuItems = menuData.map{ menuEntry ->

    val (_, name, _) =

menuEntry.split(",")

    name

}

More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome