Which of the following code snippets correctly represent Type inference on map method of Scala collections?
Answer
Correct Answer: case class MapResult(input: Any, output: Map[_ <: Any, Any]) { override def toString = output.map{ case (k: Any, v: Any) => input + " " + k + " " + v }.mkString("\n") }
Explanation:
Note: This Question is unanswered, help us to find answer for this one