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)

Related questions

0 votes
asked Jan 21, 2020 in ECMAScript by GeorgeBell
0 votes
asked Mar 16, 2021 in JAVA by Robindeniel
...