What would be the output of the following code snippet in Scala?
val l = List(1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 5, 5, 8)
println(l.drop(10))
Choose the correct options from below list
(1)List(8, 5, 5, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1)
(2)List(3, 5, 5, 8)
(3)List(3, 3, 2, 2, 2, 2, 1, 1, 1, 1)
(4)None of the options
Answer:-(2)List(3, 5, 5, 8) | |