The map method on List (and Seq), transforms each element of a collection based on a function. For example, if we have a List[String] and want to convert it to all lowercase?
Correct Answer: scala> List("A", "Cat").map(s => s.toLowerCase)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Scala MCQ Questions