0 votes
in Scala Constructs by

What would be the output of following code snippet.

val l = List(1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 5, 5, 8)

println(l.take(3))

1 Answer

0 votes
by
It would pint

.............List(1,1,1)
...