Choose the correct output of the following code fragment?
List("Who","is","longest?").foldLeft((0,""))((i,s) => if (i._1 < s.length) (s.length,s) else i )
Correct Answer: (8,longest?)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Scala MCQ Questions