What will be the output for the code fragment?
List(1, 2, 1, 2, 1, 2, 1, 2, 1, 2).drop(1).sliding(1, 2).flatten.toList
Correct Answer: List(2, 2, 2, 2, 2)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Scala MCQ Questions