Let's map and lift it up!

Report a typo

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(" ")
}
Enter a short text
___

Create a free account to access the full topic