Take a look at the following code that uses the higher-order function map. What will be printed as the output?
def makeItHigher(s: String): String = s.toUpperCase
println {
List("I", "like", "Scala").map(makeItHigher).mkString(" ")
}Take a look at the following code that uses the higher-order function map. What will be printed as the output?
def makeItHigher(s: String): String = s.toUpperCase
println {
List("I", "like", "Scala").map(makeItHigher).mkString(" ")
}Create a free account to access the full topic